Containers

What happens when you run docker container run ubuntu?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  1. Docker client posts the command to the API server running as part of the Docker daemon
  2. Docker daemon checks if a local image exists
  3. If it exists, it will use it
  4. If doesn't exists, it will go to the remote registry (Docker Hub by default) and pull the image locally
  5. containerd and runc are instructed (by the daemon) to create and start the container