advancedTop 100 Interview Questions
What happens when you run `docker run`?
The client sends a request to the daemon, which checks if the image exists locally (pulling it from a registry if not), creates a new container filesystem from the image's layers plus a new writable layer, sets up namespaces/cgroups, and starts the specified process as PID 1 inside the container.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response