4 ms·
Not really missing anything, it's just that on macOS you actually need a vm to run docker. Docker for mac uses HyperKit VM and starts docker containers inside
by cntainer 8y ago
Not really missing anything, it's just that on macOS you actually need a vm to run docker. Docker for mac uses HyperKit VM and starts docker containers inside it.
It's mostly the same on windows (you needed hyper-v or virtualbox to run docker) but they are making efforts to run containers natively. Not sure how far they got with that.
In the end if you want the best performance with minimum resource usage you need a Linux OS
- Jare 8y agoTo clarify, my understanding is that on Windows you will always need a VM to run Linux containers, but there will be (is?) native Windows containers. The dream is that maybe one day WSL will fully support Linux containers without a vm, but I will be amazed if they can pull that off.
- barrkel 8y agoWell, if you think about it, they already have containers on Windows - the WSL is effectively a container for each distro install. Emulating Linux-level container APIs is also possible in principle.
- cntainer 8y agoYep there is experimental support for native windows containers. (Not sure it it's still experimental as things move really fast in this space) As I remember you couldn't have windows and linux containers running at the same time so you needed to flip a switch in the docker config to chose one. I general I'm a linux guy but it would be really cool if they can get to a point in which you can run both windows and linux containers at the same time.
- raesene9 8y agoYou can get Windows containers without VMs on Windows server 2016. the WSL with Linux containers apparently does work with the latest insider builds...
- vbezhenar 8y agoThere's a support for Windows containers in Docker, but it's probably not useful for majority of users, because most of docker images are based on Linux, so you'll need to run Linux VM for practical usage. I think, WSL might make it possible to run Linux-based images natively, but I didn't hear about it yet.
- chupasaurus 8y agoWindows native containers are running on top of Hyper-V.
- mastax 8y agoWindows server containers are not necessarily run inside hyper-v: https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/#windows-container-types https://docs.microsoft.com/en-us/virtualization/windowsconta...
- chupasaurus 8y agoMy bad. Looks like they've implemented Linux namespaces from scratch (described nicely here [0]) [0] http://www.solidalm.com/2017/03/06/deep-dive-into-windows-server-containers-and-docker-part-2-underlying-implementation-of-windows-server-containers/ http://www.solidalm.com/2017/03/06/deep-dive-into-windows-se...
- raesene9 8y agoThe Linux containers on windows in WSL, I've heard, works in the latest insider builds to at least some degree, but haven't tried it to confirm. There are a reasonable number of Windows container images on Docker hub, although nothing like the volume of linux ones.
- raesene9 8y agoWindows containers work on Windows server 2016 with Job object based isolation (No VM needed). They also support Windows and Linux containers (via LCoW) using hyper-v VMs.