File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
workshop/dockerdesktop/mac/architecture Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ ![ Untitled-2022-07-04-2005] ( https://user-images.githubusercontent.com/313480/212122319-d6cbd117-35e3-4ee6-a452-f9d7d5b2c702.png )
2+
3+
4+ - Docker uses containerd under the hood to run containers
5+ - Containerd is a container runtime that manages the lifecycle of a container on a physical or virtual machine (a host)
6+ - It manages the complete container lifecycle of its host system!
7+ - This includes pulling and pushing images as well as handling the starting and stopping of containers.
8+
9+
10+ ```
11+ $ docker run --name web -p 80:80 -d nginx
12+ ```
13+
14+ - Docker CLI understands what we want to do, and then sends instructions to containerd.
15+ - containerd does its magic, downloads the nginx image if it's not available.
16+ - Next, containerd tells runc to start this container
17+ - And we finally get our result: nginx running in a little isolated container box.
18+
You can’t perform that action at this time.
0 commit comments