diff --git a/lib/functions.sh b/lib/functions.sh index 7a09d8b..b806efa 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -1698,3 +1698,16 @@ It's your computer. Let's make it work for you! 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 +}