Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (47.6k points)

I thought Docker could run anywhere. Why is there Docker for Windows, Docker for Linux, and Docker for OSX?

1 Answer

0 votes
by (106k points)

Docker containers are isolated groups of OS processes running on a union file system. Containers are an operating system-level concept. So there have to be different versions of Docker for different OSes. Windows is fundamentally different from Linux, so there's a version that uses Windows OS constructs to run and isolate containers. On Linux Docker uses cgroups, namespaces etc. Mac OS is different again from Linux and Windows (though Linux is a lot closer to Mac OS), so Docker for Mac runs a Linux VM and runs the containers inside that. If you want to learn Docker then you must watch the following Docker Training Course. Here is a video tutorial which you should also watch to learn the basics of Docker.

.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...