News for hackers. Stuff that matters.
Re:M1 dev setup with a virtual Linux box by cromka on Sunday April 11, 2021 @11:30AM (#26770963)
Re:M1 dev setup with a virtual Linux box by oblio on Sunday April 11, 2021 @12:54PM (#26771717)
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.

Re:M1 dev setup with a virtual Linux box by okamiueru on Sunday April 11, 2021 @03:54PM (#26772907)
Is this because you consider WSL2 to be Linux, and not Windows?
Re:M1 dev setup with a virtual Linux box by oblio on Sunday April 11, 2021 @05:55PM (#26773819)
> 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.

Re:M1 dev setup with a virtual Linux box by okamiueru on Monday April 12, 2021 @04:30PM (#26784762)
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.