Home  >  Q&A  >  body text

非Linux操作系统上可以用Docker吗?

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

PHP中文网PHP中文网2761 days ago885

reply all(6)I'll reply

  • ringa_lee

    ringa_lee2017-04-21 10:57:38

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

    reply
    0
  • PHPz

    PHPz2017-04-21 10:57:38

    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.

    reply
    0
  • 怪我咯

    怪我咯2017-04-21 10:57:38

    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

    reply
    0
  • 阿神

    阿神2017-04-21 10:57:38

    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.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-21 10:57:38

    Microsoft’s support for docker under windows is also coming soon

    reply
    0
  • ringa_lee

    ringa_lee2017-04-21 10:57:38

    Currently, except for higher versions of Linux, Windows and OSX are supported through virtual machines.

    reply
    0
  • Cancelreply