docker.io to docker

This commit is contained in:
Bertrand Gouny committed 2014-08-29 17:41:13 +02:00
1 parent c788c20245
commit f5d4c7b5c5
5 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/sh
docker.io build -t $testImage .
#docker.io build --no-cache=true -t $testImage .
docker build -t $testImage .
#docker build --no-cache=true -t $testImage .
+3 -3
View File
@@ -1,9 +1,9 @@
#!/bin/sh
# remove test container
res=$(docker.io ps -a | grep -c "$testContainer")
res=$(docker ps -a | grep -c "$testContainer")
if [ $res -ne 0 ]; then
docker.io stop $testContainer
docker.io rm $testContainer
docker stop $testContainer
docker rm $testContainer
fi
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/sh
# remove test image
res=$(docker.io images | grep -c "$testImage")
res=$(docker images | grep -c "$testImage")
if [ $res -ne 0 ]; then
docker.io rmi $testImage
docker rmi $testImage
fi
+3 -3
View File
@@ -1,11 +1,11 @@
#!/bin/sh
echo "docker.io run --name $testContainer $runOptions -d $testImage $runCommand"
ID=`docker.io run --name $testContainer $runOptions -d $testImage $runCommand`
echo "docker run --name $testContainer $runOptions -d $testImage $runCommand"
ID=`docker run --name $testContainer $runOptions -d $testImage $runCommand`
sleep 10
echo " --> Obtaining IP"
IP=`docker.io inspect -f "{{ .NetworkSettings.IPAddress }}" $ID`
IP=`docker inspect -f "{{ .NetworkSettings.IPAddress }}" $ID`
if [ "$IP" = "" ]; then
abort "Unable to obtain container IP"
exit 1