extract startup of simple container

There is now just one mention of the gliderlabs/alpine image outside config.sh.
This commit is contained in:
Matthias Radestock committed 2015-05-16 21:00:07 +01:00
1 parent ab244f76f6
commit 1c1bd817e1
13 files changed
+27 -25

No files matched your search

+6
View File
@@ -88,6 +88,12 @@ exec_on() {
docker -H tcp://$host:2375 exec $container $@
}
start_container() {
host=$1
shift 1
weave_on $host run $@ -t gliderlabs/alpine /bin/sh
}
container_ip() {
weave_on $1 ps $2 | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'
}