summaryrefslogtreecommitdiffstats
path: root/docker/test/docker_ip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/test/docker_ip.sh')
-rwxr-xr-xdocker/test/docker_ip.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/test/docker_ip.sh b/docker/test/docker_ip.sh
new file mode 100755
index 000000000..1e3bc997d
--- /dev/null
+++ b/docker/test/docker_ip.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# Obtain IP address of the container
+# See http://blog.oddbit.com/2014/08/11/four-ways-to-connect-a-docker/
+docker inspect --format '{{ .NetworkSettings.IPAddress }}' "$@"