🐳 Docker container creation - How it works!
- In this post we will see what is happening when we run a command # docker container run -it -d nginx
- We will also discuss some components involved during the container creation process
Docker CLI (docker) 💻
Docker CLI (docker)
|
|
Docker is used as a reference to the whole set of docker tools and at the beginning, it was a monolith. But now docker-cli is only responsible for user-friendly communication with docker.
So the command’s like docker build
… docker run
… are handled by Docker CLI and result in the invocation of dockerd API.
Docker container creation process flow
When we run a command to create docker container docker run -it -d nginx
The process kicked in will be explained on the below diagram