Can I run Windows containers on Docker Desktop for

2020-06-09 02:08发布

I want to be able to run Windows Docker Containers on my Mac, it seems this was sort of supported using Docker Toolbox How can I run a docker windows container on osx?

But it seems that this is now deprecated and we should be using Docker Desktop now.

Docker Desktop has a better and New Hypervisor called HyperKit instead of Virtual Box https://docs.docker.com/docker-for-mac/docker-toolbox/

Docker toolbox allowed starting Windows Containers using VirtualBox, so not sure if that mean's that this is still possible?

I have found a reference to putting Docker Desktop into "Windows Container Mode" here https://www.clearpeople.com/insights/blog/2018/june/sitecore-demo-in-a-docker-container

But I cannot find anywhere to enable this, any help or insight would be very much appreciated.

2条回答
姐就是有狂的资本
2楼-- · 2020-06-09 02:30

Docker only runs natively on Linux machines because it needs Linux kernel features called namespaces and control groups. Docker containers are built from cut down Linux distributions.

The original solution to running Docker on OS X and Windows was Docker Toolkit. This was actually a Linux virtual machine running in the VirtualBox Hypervisor. The VM had Docker installed and could run containers.

Docker Desktop for Mac still makes use of a virtual machine running Linux running in the HyperKit Hypervisor. This virtual machine is lightweight and effectively hidden from the user.

Likewise Docker Desktop for Windows makes use of a virtual machine running in the Hyper-V Hypervisor. It can also run Windows containers.

To run Windows containers you need to have a Windows machine running Docker. The Windows machine can be virtual machine running on a Mac or Linux machine.

查看更多
手持菜刀,她持情操
3楼-- · 2020-06-09 02:49

Refer this . This might work out for you. Let us know once you use it

查看更多
登录 后发表回答