summaryrefslogtreecommitdiff
path: root/examples/001/docker-exec.sh
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-10 20:43:08 -0600
committermo khan <mo.khan@gmail.com>2020-06-10 20:43:08 -0600
commit6f65e7fa18a406c5b233d7d692186b302d594971 (patch)
tree55b09e591e34c2f5c37f45af28332fff25e68339 /examples/001/docker-exec.sh
parentc5794d5b829ab12d09b535d8aaf2faad56cc6cf2 (diff)
build large image and small image
Diffstat (limited to 'examples/001/docker-exec.sh')
-rw-r--r--examples/001/docker-exec.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/001/docker-exec.sh b/examples/001/docker-exec.sh
new file mode 100644
index 0000000..39478b2
--- /dev/null
+++ b/examples/001/docker-exec.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+image_id="$(docker ps | grep developing | awk '{ print $1 }' | tail -n1)"
+docker exec -it "$image_id" /bin/sh