Is Docker Platform Independent?

Viewed 1707

I've always this question and no where I found exact answer:

Is Docker Platform Independent?

I mean, when I generate image in Windows, can I run that image on Linux or MacOS? Or when I generate image on Ubuntu, can I run that image on Windows?

If yes, how? If no, what's the point of saying, docker images can be ran anywhere without worrying about any dependencies?

Please help me with this question

1 Answers

"Windows containers" run only on Windows. Windows can, and Mac does, use a Linux hypervisor, so it is dependent on a Linux kernel. For Windows, that means you also need a version that supports emulation.

It's also CPU dependent (or was) as you need to cross-compile x86 images separately from armv6, armv7, etc

Related