#/bin/bash

docker inspect --format '{{ .NetworkSettings.IPAddress }}' tomcat7

#/bin/bash

if [[ -z $1 ]]; then
	echo -e "\n*** Image Name missing.\nUsage: $0 <image-name>\n"
	exit 1
fi

echo "-- Container Ip address --"
docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1

echo -e "\n-- Kitematic ip address --"
docker-machine ip default

exit 0
Enhance script to determine IP address container and boot2docker vm
Enhance script to determine IP address container and boot2docker vm
