Skip to content

Commit

Permalink
Fix test runner: obtain container IP with 'docker inspect'
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Dec 8, 2015
1 parent d141556 commit bfd971a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ID=`docker run -d -v $PWD/test:/test $NAME:$VERSION /sbin/my_init --enable-insec
sleep 1

echo " --> Obtaining IP"
IP=`docker inspect $ID | grep IPAddress | sed -e 's/.*: "//; s/".*//'`
IP=`docker inspect -f "{{ .NetworkSettings.IPAddress }}" "$ID"`
if [[ "$IP" = "" ]]; then
abort "Unable to obtain container IP"
fi
Expand Down

0 comments on commit bfd971a

Please sign in to comment.