summaryrefslogtreecommitdiff
path: root/examples/001/dive-exec.sh
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-10 21:07:44 -0600
committermo khan <mo.khan@gmail.com>2020-06-10 21:07:44 -0600
commit0860d075d1a3e939ce1a6d4d9de96ea227333346 (patch)
treee3a8c918cdc9145761892e92f2a31397b53ca0bf /examples/001/dive-exec.sh
parent6f65e7fa18a406c5b233d7d692186b302d594971 (diff)
Compare large and small images
Diffstat (limited to 'examples/001/dive-exec.sh')
-rw-r--r--examples/001/dive-exec.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/001/dive-exec.sh b/examples/001/dive-exec.sh
index a14c43d..68de99d 100644
--- a/examples/001/dive-exec.sh
+++ b/examples/001/dive-exec.sh
@@ -1,6 +1,8 @@
#!/bin/sh
set -e
-image_id="$(docker image ls developing-with-docker | awk '{ print $3 }' | grep -v REPO | tail -n1)"
+
+name="$1"
+image_id="$(docker image ls "$name" | awk '{ print $3 }' | grep -v REPO | tail -n1)"
echo "$ dive $image_id"
dive "$image_id"