summaryrefslogtreecommitdiffstats
path: root/docker/test/docker_ip.sh
blob: 1e3bc997d531ae7886f4ab5eb9a123386e8c3bca (plain)
1
2
3
4
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 }}' "$@"