Docker Engine Flashcards
What is Docker Engine?
The mechanism which runs and deploys containers
Which are the main components that make up the Docker Engine?
a) Docker Daemon
b) containerd
c) runc
What were the main components that used to make docker engine?
a)daemon
A monolithic binary with Docker client,Docker API,container run time and image builds
b)LXC
Why LXC was abandoned?
It was platform specific, Linux
What is runc>
It is the OCI(open container implementation ) of runtume-specc.runc is a small, lightweight CLI wrapper for
libcontainer (remember that libcontainer originally replaced LXC in the early Docker
architecture).
What is the purpose of runc?
It’s purpose is to create containers
What is the purpose of containerd?
Its sole purpose in life was to manage
container life cycle operations — start | stop | pause | rm….
When you start a new container,how the commands are converted?
The commands are converted to API payload and are posted to the correct API point.
Where the API is implemented ?
The API is implemented in the daemon.
When the daemon receives commands for creating containers what exactly happens?
When the daemon receives the commands, it communicates with the containerd with a CRUD-style API. Actually it cannot create containers and for that reason it communicates with runc.I te forks a new instance of runc.
What runc does after the call?
It pulls the OS kernel modules available for the containers.
What is shim?
SHim is the container’s parent