Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No. 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.



Is this because you consider WSL2 to be Linux, and not Windows?


> 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

And WSL2 is Linux running in a VM on Windows.


Ah, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: