devwiki:docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devwiki:docker [2022/09/13 07:12] yingdevwiki:docker [2022/09/13 08:34] (current) – [Get Start with Docker] ying
Line 14: Line 14:
     * but in web development, some library change dramatically to improve efficiency and so are some game projects required some old assets to maintain.     * but in web development, some library change dramatically to improve efficiency and so are some game projects required some old assets to maintain.
     * so more and more situations happen in real life in a less standardized and diversed task-oriented world.     * so more and more situations happen in real life in a less standardized and diversed task-oriented world.
-    * so Docker is the solution to let use pack versions of thing is a container to ship a all-in-one package like XAMPP (apache,sql,php ready to run pack), much more than it (which allows multi-version run at same time)+    * so Docker is the solution to let use pack versions of thing is a container to ship a all-in-one package like XAMPP (apache,sql,php ready to run pack), and much more than it (which allows multi-version run at same time) 
 + 
 +  * disadvantage of container 
 +    * duplicate of same things may happen in so many containers 
 +    * sacrifice a bit of disk space for easy install and easy remove like portable app 
 + 
 +  * ideal of "Run app in isolation" 
 +    * easy to build a app and put on ipad and give to your client, since that is all in one (hardware and software) 
 +    * to cut cost, you can put app in a virtual machine, that virtual machine is about the app (like cloud computing instance) 
 +    * virtual machine is slow because each app is bring with a huge Operation System and hangs on memory and CPU all the time. 
 +    * Container is a cheap lite pack "virtual machine" that use main operation system and run like a app wrapper - a app run inside a app. 
 +    * finally, windows supports running Win+Linux container, linux support linux container, mac use VM to run linux container 
 + 
 +====== Get Start with Docker ====== 
 + 
 +ref: https://www.youtube.com/watch?v=pTFZFxd4hOI 
 + 
 +  * install : https://www.docker.com/products/docker-desktop/ (free for less than 250 people company) 
 +  * once install and restart, run Docker Desktop with admin rights (important) 
 +    * most likely, your "Docker Desktop starting" will take a bit time, then pop error about WSL 2 installation is incomplete 
 +    * click the link to install latest linux core for windows. (wsl_update_x64.msi) 
 +    * then restart pc, run docker with admin right again 
 +    * you should see "Get started with Docker in a few steps", means ok 
 +    * go through docker first tutorial to get started 
 +  * you should be able to run cmd with admin right<code>docker version</code>
  
  • devwiki/docker.1663053158.txt.gz
  • Last modified: 2022/09/13 07:12
  • by ying