3 ms·
So unless I'm missing something important, why not just use docker engine directly on a wsl2 instance?
by OldTimeCoffee 5y ago
So unless I'm missing something important, why not just use docker engine directly on a wsl2 instance?
- mongol 5y agoIs that working? Does wsl2 provide more than a shell?
- dharmab 5y agoWSL2 uses a full Linux VM running under HyperV.
- devoutsalsa 5y agoWSL2 can get weird when you start trying to install software with low level virtualization and file system features. YMMV. I’d use it to install apps, but I wouldn’t be confident it’d work with Docker. Even if it did initially work, eventually you’ll hit a problem for which there is no googleable answer & good luck with that.
- amaranth 5y agoDocker Desktop installs dockerd in a WSL2 instance these days instead of using VirtualBox so I'd assume it works pretty well now.
- w7 5y agoCurrent Docker on Windows detects if you have WSL2 or not, and gives you the option of just installing docker in WSL2 + configuring the Windows docker tools to manipulate the docker daemon running in WSL2.
- mongol 5y agoBut what does it run as PID1? I think not systemd?
- singingboyo 5y agoLast I recall, docker desktop on windows explicitly recommended WSL2 over Hyper-V or whatever based setups.
- kristjansson 5y agoI’m not a Windows user but AIUI just running dockerd in WSL2 misses some of the volume sharing and networking niceties. Nothing that couldn’t be replicated though