aboutsummaryrefslogtreecommitdiff
path: root/examples/example1.sh
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2019-01-13 20:16:37 -0700
committerCody Hiar <codyfh@gmail.com>2019-01-13 20:16:37 -0700
commita69b96fe168a05792288ef2e186a86e6540f85bd (patch)
tree6641019251857ec2dd888a948415b51b552964b6 /examples/example1.sh
parent8f7de74cd6fb4317771586c65b43f8a6e4d85f26 (diff)
Updating progress
Diffstat (limited to 'examples/example1.sh')
-rwxr-xr-xexamples/example1.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/example1.sh b/examples/example1.sh
index d441d9a..cc42e7c 100755
--- a/examples/example1.sh
+++ b/examples/example1.sh
@@ -16,6 +16,14 @@
set -exuo pipefail
# Run a container
+# Time the docker command tells us how long it took
+# --rm will remove the container after it's done executing
+# -it is for running the docker process interactively in our
+# current terminal vs running it as a daemon.
+# ubuntu:18.04 is the image we want to use, if we don't have
+# the image downloaded then docker will automatically try
+# to get it from docker hub
+# The remainder is the command we're passing to the container
time docker run --rm -it ubuntu:18.04 /bin/bash -c 'echo Hello World'
# Show size of docker container