Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Docker use different tools to run containers on different Operating Systems?

Tags:

docker

I am studying the course "Docker Essentials: A Developer Introduction" in "cognitiveclass.ai" and one of the questions was "What tool makes it possible to run Docker containers on operating systems other than Linux?" and the choices where: LinuxByte, OSContainers, Docker Swarm and Linuxkit. But no matter how much I looked for the answer I couldn't find anything that explain this problem clearly.

I know that Docker Swarm is a tool for managing a cluster of container, also Docker uses Linux virtual machine to run containers on mac and hyper-v for windows.

like image 815
Mohamed Amin Lajmi Avatar asked Nov 02 '18 13:11

Mohamed Amin Lajmi


People also ask

How does Docker work on different OS?

Here, the Docker container engine is entirely dependant on the container features of the Linux kernel, and that's the reason why Docker containers cannot run on Windows and Mac operating systems. The Unix kernel powers the Mac operating system, similarly the Windows kernel powers the Windows operating system.

What tool makes it possible to run Docker containers on operating systems?

runC. runC is a lightweight, universal OS container runtime. It was originally a low-level Docker component, which worked under-the-hood, embedded within the platform architecture. However, it has since been rolled out as a standalone modular tool.

Can the same Docker container run on Windows and Linux?

With Docker for Windows started and Windows containers selected, you can now run either Windows or Linux Containers simultaneously. The new –platform=linux command line switch is used to pull or start Linux images on Windows.

Do containers share operating systems?

Containers are a type of software that can virtually package and isolate applications for deployment. Containers can share access to an operating system (OS) kernel without the traditional need for virtual machines (VMs).


1 Answers

Its Linuxkit. Docker containers are based on linux containers, so you need to have linux to run them. Linuxkit came as a solution for that.

Read this article to get some idea.

like image 136
thanuja Avatar answered Oct 02 '22 18:10

thanuja