Skip to content

Commit fd7ffea

Browse files
Add details of interaction
Describes more clearly the interaction between the Docker Client, the Docker Dameon and Docker Hub.
1 parent 1295932 commit fd7ffea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

beginner/chapters/alpine.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ drwxr-xr-x 5 root root 4096 Mar 2 16:20 lib
3030
......
3131
......
3232
```
33-
What happened? Behind the scenes, a lot of stuff happened. When you call `run`, the Docker client finds the image (alpine in this case), creates the container and then runs a command in that container. When you run `docker run alpine`, you provided a command (`ls -l`), so Docker started the command specified and you saw the listing.
33+
What happened? Behind the scenes, a lot of stuff happened. When you call `run`,
34+
1. The Docker client contacts the Docker daemon
35+
2. The Docker daemon dowloads the image (alpine in this case) from Docker Hub
36+
3. The Docker daemon creates the container and then runs a command in that container.
37+
4. The Docker daemon streams the output of the command to the Docker client
38+
39+
When you run `docker run alpine`, you provided a command (`ls -l`), so Docker started the command specified and you saw the listing.
3440

3541
Let's try something more exciting.
3642

0 commit comments

Comments
 (0)