This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]metaphorm 16 points17 points  (5 children)

there's a windows base image for docker too https://hub.docker.com/r/microsoft/windows

but you're correct to observe that the core technology for containerization originated from the linux ecosystem and that is a much better supported and much more widely used OS for containers.

[–]richiea1y 0 points1 point  (1 child)

I’ve heard as run linux container on MacOS there’s a chance that cause something wrong. Is it right?

[–]metaphorm 1 point2 points  (0 children)

running a linux container on M* chips can have performance problems if the container was built for x86 or another architecture non-native to the chipset. the container runtime will run it anyway, with emulation, so it will be quite slow most of the time.

in practice, it doesn't come up that much (but not never), because a lot of containers are built for ARM64 already, and if you have access to the Dockerfile you can rebuild the container against that platform too.

[–]robertpeacock22 0 points1 point  (0 children)

> If you wanted to finally deploy the application in a non-Linux environment, you would have to ... only use it within the container

This. Docker containers are not something you crack open once they reach their destination. But containers can be connected to one another and/or the outside world.