Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
devwiki:docker [2022/09/13 07:12] – ying | devwiki:docker [2022/09/13 08:34] (current) – [Get Start with Docker] ying | ||
---|---|---|---|
Line 14: | Line 14: | ||
* but in web development, | * but in web development, | ||
* 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, | + | * 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, |
+ | |||
+ | * 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 " | ||
+ | * finally, windows supports running Win+Linux container, linux support linux container, mac use VM to run linux container | ||
+ | |||
+ | ====== Get Start with Docker ====== | ||
+ | |||
+ | ref: https:// | ||
+ | |||
+ | * install : https:// | ||
+ | * once install and restart, run Docker Desktop with admin rights (important) | ||
+ | * most likely, your " | ||
+ | * 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", | ||
+ | * go through docker first tutorial to get started | ||
+ | * you should be able to run cmd with admin right< | ||