summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md77
1 files changed, 45 insertions, 32 deletions
diff --git a/README.md b/README.md
index 5b91e18..11e64e3 100644
--- a/README.md
+++ b/README.md
@@ -107,29 +107,29 @@ curl -s -i https://registry-1.docker.io/v2/alpine/tags/list
# Architecture
```text
- ----------
- | Client |
- ----------
- | build |
- | pull |
- | run |
- ----------
- | (tcp/unix socket)
- V
- ---------------
- | Docker Host |
- ---------------
- | Daemon |
- | Containers |
- | Images |
- --------------
- | A
- V |
- ------------
- | Registry |
- ------------
- | Images |
- ------------
+ ----------
+ | Client |
+ ----------
+ | build |
+ | pull |
+ | run |
+ ----------
+ | (tcp/unix socket)
+ V
+ ---------------
+ | Docker Host |
+ ---------------
+ | Daemon |
+ | Containers |
+ | Images |
+ --------------
+ | A
+ V |
+ ------------
+ | Registry |
+ ------------
+ | Images |
+ ------------
```
https://docs.docker.com/get-started/overview/#docker-architecture
@@ -140,7 +140,7 @@ https://docs.docker.com/get-started/overview/#docker-architecture
$ curl --unix-socket /var/run/docker.sock http://localhost/images/json
```
-```terminal16
+```terminal32
curl -i --unix-socket /var/run/docker.sock http://localhost/images/json
```
@@ -154,13 +154,13 @@ docker version
# $ docker image ls
-```terminal8
+```terminal32
docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}\t{{.Size}}"
```
# $ docker ps
-```terminal8
+```terminal32
docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Status}}"
```
@@ -281,7 +281,7 @@ https://github.com/wagoodman/dive
* Allows investigating files that are added/removed/changed in each layer
```terminal32
-bash examples/001/dive-exec.sh
+bash examples/001/dive-exec.sh developing-with-docker
```
# Compression
@@ -289,7 +289,7 @@ bash examples/001/dive-exec.sh
* More layers == more parallel downloads
* Smaller layers == faster downloads per layer
-```terminal16
+```terminal32
bash -i examples/001/docker-large-download.sh
```
@@ -307,7 +307,7 @@ docker build -t big-image:latest examples/002/
# docker image ls
-```terminal8
+```terminal32
docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}\t{{.Size}}"
```
@@ -334,16 +334,29 @@ lang: sh
docker build -t small-image:latest examples/003/
```
+# dive small-image:latest
+
+```terminal32
+bash examples/001/dive-exec.sh small-image
+```
+
+# docker run -it small-image:latest
+
+```terminal32
+docker run -it small-image:latest
+```
+
# docker image ls
-```terminal8
-docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}\t{{.Size}}"
+```terminal32
+docker image ls --format "table {{.ID}}\t{{.Tag}}\t{{.Size}}"
```
+
# Summary
* Keep each layer small
-* More layers means more parallel downloads
+* More layers provides opportunity for more parallel downloads
# Fin