Fixed network creation
This commit is contained in:
parent
5328d5fe5c
commit
a6f1a86376
@ -9,8 +9,10 @@ config_network() {
|
||||
spin &
|
||||
SPINPID=$!
|
||||
|
||||
[ ! `docker network ls -q --filter name=fstack` ] && docker network create --subnet 172.99.0.0/16 fstack &> /dev/null
|
||||
[ $? -ne 0 ] && fail "Couldn't run docker network create"
|
||||
if [ ! `docker network ls -q --filter name=fstack` ]; then
|
||||
docker network create --subnet 172.99.0.0/16 fstack &> /dev/null
|
||||
[ $? -ne 0 ] && fail "Couldn't run docker network create"
|
||||
fi
|
||||
|
||||
echo -ne "done."
|
||||
kill -9 $SPINPID &> /dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user