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