非Linux操作系统上可以用Docker吗?
PHP中文网
PHP中文网 2017-04-21 10:55:38
0
6
921

如题,好像Docker是根据Linux的LXC技术来做的,那么Mac上有没有办法通过编译源代码等方式来跑Docker呢?如果是Windows,没有LXC,是不是就不能用Docker了?小弟对Linux不太熟,还请各位赐教,提前感谢了。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(6)
左手右手慢动作

@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.

PHPzhong

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template