Added config_network to functions.sh
This commit is contained in:
parent
46978df205
commit
a39f735a0a
@ -1698,3 +1698,16 @@ It's <b>your</b> computer. Let's make it work for you!
|
||||
</html>
|
||||
EOF
|
||||
}
|
||||
config_network() {
|
||||
echo -ne "\n* Configuring federated network.."
|
||||
spin &
|
||||
SPINPID=$!
|
||||
|
||||
if [ ! `docker network ls -q --filter name=federated` ]; then
|
||||
docker network create --subnet 172.99.0.0/16 federated &> /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