Page 1 of 1

Docker?

Posted: Sat Mar 19, 2022 7:08 pm
by wxwisiasdf
Hi, I would like to know if there is any way to "integrate" a kernel to interact inside a Docker container to act as the "guest"?

Can Docker run anything not Linux (not counting Windows)? How? What does Docker expect of the kernel? What's the kernel expected to do? How does one pass `ps/top` to Docker via the stand-alone kernel? etc

Re: Docker?

Posted: Sat Mar 19, 2022 7:31 pm
by klange
In its traditional mode of operation, Docker is a management interface for Linux's containerization functionality: isolated process trees, virtual network interfaces, and so on. In this mode, there is no "guest" OS. The applications running "inside" of a container are running on the same Linux kernel as the "host". On host platforms other than Linux, Docker just runs a Linux VM using a platform-appropriate virtualization interface, and then runs containers inside of that.

Docker has grown a bit over the years and also supports modes in which it can run "guests" in virtual machines using libvirt, but this is just a layer on top of a virtualization management abstraction library.