| ▲ | treve 3 days ago |
| On Windows, doesn't this technically mean OP is running Linux inside a Linux VM inside Windows? From what I understand Docker is Linux tech and to use it anywhere else a (small) Linux VM is required. If true, I would just dispense with the extra layer and just run a Linux VM. Not to discourage experimentation though! |
|
| ▲ | teraflop 3 days ago | parent | next [-] |
| Almost. For one thing, Docker is not really "Linux inside Linux". It uses Linux kernel features to isolate the processes inside a container from those outside. But there is only one Linux kernel which is shared by both the container and its host (within the Linux VM, in this case). For another, running Linux containers in a Linux VM on Windows is one (common) way that Docker can work. But it also supports running Windows containers on Windows, and in that case, the Windows kernel is shared just like in the Linux case. So Docker is not exactly "Linux tech". |
| |
| ▲ | raesene9 2 days ago | parent | next [-] | | I think GP is likely referring to Docker Desktop, which is probably the most common way to use Docker on Windows. Running Linux containers using Docker Desktop has a small Linux VM in which the containers are run and then Docker does some mucking about to integrate that better with the Windows host OS. | |
| ▲ | NikolaNovak 2 days ago | parent | prev | next [-] | | I thought docker only supports windows as a host if you enable wsl, in which case you're running on hyper v and Linux kernel as part of wsl2, so absolutely Linux tech on a Linux vm on Windows... Am I wrong? | | |
| ▲ | nine_k 2 days ago | parent | next [-] | | You are. You can run Docker for Windows, and run Windows binaries in reasonably isolated containers, without involving Linux at all [1]. Much like you run Linux containers on Linux without involving Windows. It's Docker Desktop what assumes WSL; Docker engine does not. Also, you seem to need Windows Server; IDK if it can be made to work on a Pro version. [1]: https://learn.microsoft.com/en-us/virtualization/windowscont... | | |
| ▲ | okanat 2 days ago | parent [-] | | Docker Desktop defaults to WSL2 but it has no assumptions whatsoever. You can run it with HyperV |
| |
| ▲ | gregoryl 2 days ago | parent | prev | next [-] | | Docker supports either hyper-v, or wsl2 as a host for the Linux kernel - they generally push people towards wsl2. I vaguely recall wsl2 uses a subset of hyper-v the name of which escapes me atm. | |
| ▲ | okanat 2 days ago | parent | prev [-] | | You are. Docker Desktop supports two different container platforms: usual Linux ones and Windows Containers. With the former a Linux kernel is required. You have two options: using WSL2 and benefiting from all the optimizations and integrations that Microsoft made, or running a full Hyper-V VM that gives absolute control and isolation from rest of the system. For the latter, you need a Pro license and need to enable Containers feature (deployment requires more expensive Server licenses). Then you can run slimmed down Windows images like "nano server" which doesn't have GUI APIs. |
| |
| ▲ | xeonmc 2 days ago | parent | prev [-] | | Can he install Wine in the Docker container to run Windows games from it? | | |
|
|
| ▲ | lostlogin 3 days ago | parent | prev | next [-] |
| Isn’t this the case on macOS too? I desperately wish I could run docker properly (CLI) on the Mac rather than use docker desktop, and while we are making a dream list, can I just run Ubuntu on the Mac mini? |
| |
| ▲ | eventualhorizon 2 days ago | parent | next [-] | | I’ve been using colima for cli docker on my arm mac. It’s pretty straightfirward using homebrew. | | |
| ▲ | isomorphic 2 days ago | parent [-] | | Colima is great. However, in the upcoming macOS 26 Tahoe, and mostly in macOS 15 Sequoia, Apple is beginning to provide a first-party solution: https://github.com/apple/container I've been experimenting with it in macOS 15, and I was able to replace Colima entirely for my purposes. Running container images right off of Docker Hub, without Docker / Podman / etc. (And yes, it is using a small Linux VM run under Apple's HyperKit.) | | |
| ▲ | pylotlight 2 days ago | parent [-] | | I ran into various issues I think, but my main objective was running a full k3s cluster this way, reckon this is achievable with full networking support now?
Also if I already had colima setup, does new apple container provide any benefits beyond just being made by apple? | | |
| ▲ | moltar 2 days ago | parent [-] | | Try Orb docker. It is fast. It ha a Kubernetes cluster feature. | | |
| ▲ | lostlogin 2 days ago | parent [-] | | This thread is amazing - thank you all. I’m surprised I didn’t stumble into any of these options, I searched and didn’t find. |
|
|
|
| |
| ▲ | sprinkly-dust 2 days ago | parent | prev [-] | | It might not be Ubuntu but Asahi Linux runs Fedora pretty well on M2 Pro and older Apple Silicon Mac Minis: https://asahilinux.org/fedora/#device-support | | |
|
|
| ▲ | PeterStuer 2 days ago | parent | prev | next [-] |
| No, WSL2 does not run "inside Windows", but on the "Virtual Machine Platform", a sort of mini hyper-v. |
|
| ▲ | BrenBarn 2 days ago | parent | prev [-] |
| Sup dawg, I heard you like OSes. |