diff options
Diffstat (limited to 'examples/docker/test/docker_ip.sh')
-rwxr-xr-x | examples/docker/test/docker_ip.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/docker/test/docker_ip.sh b/examples/docker/test/docker_ip.sh new file mode 100755 index 000000000..1e3bc997d --- /dev/null +++ b/examples/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 }}' "$@" |