Careeroza
Docker Architecture
Client, Daemon and Registry
- The Docker client (
dockerCLI) sends your commands to the daemon through an API. - The Docker daemon (
dockerd) builds images, runs containers and manages networks and volumes. - A registry stores images;
docker pulldownloads from it anddocker pushuploads to it.
What Happens on docker run
- The client sends "run nginx" to the daemon.
- The daemon looks for the
nginximage locally; if missing, it pulls it from Docker Hub. - It creates a container: a writable layer on top of the image, a network interface and an IP.
- It starts the container's main process (the image's
CMD). - The container runs until that main process exits.