4 ms·
Docker isn't portable. Docker runs on Linux and only on Linux. All the Docker pseudo-ports just run a Linux VM on the host OS and set up Docker inside it, for
by oblio 6y ago
Docker isn't portable. Docker runs on Linux and only on Linux.
All the Docker pseudo-ports just run a Linux VM on the host OS and set up Docker inside it, for you.
- cromka 6y agoThink you forgot about Windows: https://hub.docker.com/_/microsoft-windows-base-os-images https://hub.docker.com/_/microsoft-windows-base-os-images
- oblio 6y agoNo. Can you run those images on Linux? :-) Docker images are not portable, they run on Linux or on Windows, but they can never run on both.
- okamiueru 6y agoIs this because you consider WSL2 to be Linux, and not Windows?
- oblio 6y ago> Windows requires the host OS version to match the container OS version. If you want to run a container based on a newer Windows build, make sure you have an equivalent host build. Otherwise, you can use Hyper-V isolation to run older containers on new host builds. You can read more on Windows Container Version Compatibility in our Container Docs. https://hub.docker.com/_/microsoft-windows-base-os-images https://hub.docker.com/_/microsoft-windows-base-os-images And WSL2 is Linux running in a VM on Windows.
- okamiueru 6y agoAh, my bad. I thought you meant not being able to run linux based images in docker when run with wsl2. There is also a significant difference between the vmware like implementation and wsl2. Spinning up a linux machine in VMware and running docker on that, as mentioned in the article, is quite a different ballpark. Especially when considering the limited CPU and ram resources.