Skip to content

Commit

Permalink
Add details of interaction
Browse files Browse the repository at this point in the history
Describes more clearly the interaction between the Docker Client, the Docker Dameon and Docker Hub.
  • Loading branch information
Deborah-Digges authored Apr 22, 2017
1 parent 1295932 commit fd7ffea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion beginner/chapters/alpine.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ drwxr-xr-x 5 root root 4096 Mar 2 16:20 lib
......
......
```
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.
What happened? Behind the scenes, a lot of stuff happened. When you call `run`,
1. The Docker client contacts the Docker daemon
2. The Docker daemon dowloads the image (alpine in this case) from Docker Hub
3. The Docker daemon creates the container and then runs a command in that container.
4. The Docker daemon streams the output of the command to the Docker client

When you run `docker run alpine`, you provided a command (`ls -l`), so Docker started the command specified and you saw the listing.

Let's try something more exciting.

Expand Down

0 comments on commit fd7ffea

Please sign in to comment.