@widuu is talking about how to set up Docker when the development environment uses Mac and Windows.
Mac and Windows cannot be used as Host to run Docker, because Docker is based on two Linux kernel features Namespaces and CGroups, so Mac OS and Windows, which are Unix systems, cannot be used as Host.
Currently, Docker supports Windows and MacOS systems.
http://www.docker.com/product...
Docker is developed based on Ubuntu, so it is officially recommended to install it on the Ubuntu operating system. Other systems need to install a Virtual Box (Vmware should also work, but the official thinks it charges a fee), and then load the official image boot2docker.iso. The image has Docker pre-installed, and you can start the virtual machine and use it.
If you want to provide services for others to use, it is best to find a physical machine and install Ubuntu to run Docker.
Docker’s underlying virtualization technology relies on lxc, which is the linux container. The brothers above also introduced that lxc actually encapsulates the kernel features of cgroups and namespace. Therefore, it must currently only run on Linux. Now the official said The so-called support for mac and so on are all achieved by relying on virtualbox.
Compiling source code to generate docker on mac is not a big problem. I have not tried it. Generally, I use vagrant to compile on mac, so in fact there is no need to use the mac version. I think the experience is really bad and useless. , completely unnecessary. Using vagrant and the host are a perfect combination.
In addition, brother, since you are already tossing around docker, it must be background development. Backend development still requires Linux as a basic skill.
@widuu is talking about how to set up Docker when the development environment uses Mac and Windows.
Mac and Windows cannot be used as Host to run Docker, because Docker is based on two Linux kernel features Namespaces and CGroups, so Mac OS and Windows, which are Unix systems, cannot be used as Host.
Latest notification
Currently, Docker supports Windows and MacOS systems.
http://www.docker.com/product...
Docker is developed based on Ubuntu, so it is officially recommended to install it on the Ubuntu operating system. Other systems need to install a Virtual Box (Vmware should also work, but the official thinks it charges a fee), and then load the official image
boot2docker.iso
. The image has Docker pre-installed, and you can start the virtual machine and use it.If you want to provide services for others to use, it is best to find a physical machine and install Ubuntu to run Docker.
Yes
Windows installation using virtualbox+vagrant Chinese installation tutorial: http://www.widuu.com/docker/docker-windows.html
Chinese installation tutorial for using boot2docker on macos: http://www.widuu.com/docker/macos.html
Of course you can also use virtualbox+vagrant on macos. I used to use virtualbox+vagrant
Docker’s underlying virtualization technology relies on lxc, which is the linux container. The brothers above also introduced that lxc actually encapsulates the kernel features of cgroups and namespace. Therefore, it must currently only run on Linux. Now the official said The so-called support for mac and so on are all achieved by relying on virtualbox.
Compiling source code to generate docker on mac is not a big problem. I have not tried it. Generally, I use vagrant to compile on mac, so in fact there is no need to use the mac version. I think the experience is really bad and useless. , completely unnecessary. Using vagrant and the host are a perfect combination.
In addition, brother, since you are already tossing around docker, it must be background development. Backend development still requires Linux as a basic skill.
Microsoft’s support for docker under windows is also coming soon
Currently, except for higher versions of Linux, Windows and OSX are supported through virtual machines.