1
0
mirror of /repos/baseimage-docker.git synced 2026-02-26 17:32:03 +01:00

allow to install the insecure key with the new --enable-insecure-key option

fix #16
This commit is contained in:
Thomas LÉVEIL
2014-02-22 16:29:14 +01:00
parent 7bd55402b0
commit bf35ff2bf1
5 changed files with 53 additions and 25 deletions

View File

@@ -12,19 +12,12 @@ function cleanup()
echo " --> Stopping container"
docker stop $ID >/dev/null
docker rm $ID >/dev/null
docker rmi baseimage_test >/dev/null 2>/dev/null
}
PWD=`pwd`
echo " --> Preparing container"
ID=`docker run -d $NAME:$VERSION enable_insecure_key`
docker wait $ID >/dev/null
docker commit $ID baseimage_test >/dev/null
docker rm $ID >/dev/null
echo " --> Starting container"
ID=`docker run -d -v $PWD/test:/test baseimage_test /sbin/my_init`
echo " --> Starting insecure container"
ID=`docker run -d -v $PWD/test:/test $NAME:$VERSION /sbin/my_init --enable-insecure-key`
sleep 1
echo " --> Obtaining IP"