extract startup of simple container
There is now just one mention of the gliderlabs/alpine image outside config.sh.
This commit is contained in:
1 parent
ab244f76f6
commit
1c1bd817e1
13 files changed
+27
-25
No files matched your search
@@ -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}'
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user