diff options
| author | mo khan <mo.khan@gmail.com> | 2020-06-10 21:33:28 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-06-10 21:33:28 -0600 |
| commit | 44f8e92711d09b10309f0fd1ccf65ee6fe411a05 (patch) | |
| tree | 6c49341adf54b784fcce3199b7a7346c09badd1f /README.md | |
| parent | 0860d075d1a3e939ce1a6d4d9de96ea227333346 (diff) | |
CLeanup slides
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 25 |
1 files changed, 18 insertions, 7 deletions
@@ -144,7 +144,7 @@ $ curl --unix-socket /var/run/docker.sock http://localhost/images/json curl -i --unix-socket /var/run/docker.sock http://localhost/images/json ``` -# $ docker +# $ docker version The docker CLI is an HTTP client that can connect to Unix or TCP sockets. @@ -245,7 +245,7 @@ lines: # docker build -t developing-with-docker:latest examples/001/ ```terminal32 -docker build -t developing-with-docker:latest examples/001/ +time docker build -t developing-with-docker:latest examples/001/ ``` # docker run developing-with-docker:latest @@ -284,7 +284,7 @@ https://github.com/wagoodman/dive bash examples/001/dive-exec.sh developing-with-docker ``` -# Compression +# docker pull registry.gitlab.com/gitlab-org/security-products/license-management:latest * More layers == more parallel downloads * Smaller layers == faster downloads per layer @@ -302,13 +302,19 @@ lang: docker ``` ```terminal32 -docker build -t big-image:latest examples/002/ +time docker build -t big-image:latest examples/002/ ``` # docker image ls ```terminal32 -docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}\t{{.Size}}" +docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}\t{{.Size}}" | grep -v gitlab +``` + +# dive big-image:latest + +```terminal32 +bash examples/001/dive-exec.sh big-image ``` # docker build -t small-image:latest examples/003/ @@ -331,7 +337,13 @@ lang: sh ``` ```terminal32 -docker build -t small-image:latest examples/003/ +time docker build -t small-image:latest examples/003/ +``` + +# docker image ls + +```terminal32 +docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}\t{{.Size}}" | grep -v gitlab ``` # dive small-image:latest @@ -352,7 +364,6 @@ docker run -it small-image:latest docker image ls --format "table {{.ID}}\t{{.Tag}}\t{{.Size}}" ``` - # Summary * Keep each layer small |
