Q4
# Execution flow of `docker run`:
💬Answer
- Docker CLI converts the command to a REST API call and sends it to
dockerd. dockerdcallscontainerdvia gRPC.containerddownloads the image (if missing) and creates the runtime bundle metadata.containerdcallscontainerd-shim(which keeps the container alive without keeping containerd active).containerd-shimcallsruncto create namespaces, attach cgroups, and start the container process.- Once the process is running,
runcexits.
Related Docker Questions
View All DockerQuestions →Q1
How would you explain the difference between a container and a virtual machine to someone new to DevOps?
Q2What is Docker, and what specific advantages does it bring to the software development lifecycle?
Q3Can you walk me through the low-level container runtime stack (runc, containerd, CRI-O)? What actually happens under the hood when 'docker run' executes?
Q5How does Docker use Linux namespaces to isolate container processes?

Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio