summaryrefslogtreecommitdiff
path: root/scripts/docker/helper/get-container-ip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/docker/helper/get-container-ip.sh')
-rwxr-xr-xscripts/docker/helper/get-container-ip.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/docker/helper/get-container-ip.sh b/scripts/docker/helper/get-container-ip.sh
deleted file mode 100755
index 2b392350..00000000
--- a/scripts/docker/helper/get-container-ip.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-# Print the IP of a container to stdout, given its id. Check the output for
-# the `docker inspect` commmand for more details:
-#
-# https://docs.docker.com/engine/reference/commandline/inspect/
-
-if [ ${#} -ne 1 ]; then
- echo "Usage: ${0} container_id"
- exit 1
-fi
-
-container_id=${1}
-
-/usr/bin/docker \
- inspect \
- --format='{{.NetworkSettings.IPAddress}}' \
- ${container_id}