exit if bringing up the network fails

pull/1/head
Jordan Sokolic 2020-03-04 08:50:08 +02:00
parent 72ef74a0a5
commit 19267cedeb
1 changed files with 2 additions and 2 deletions

4
run.sh
View File

@ -57,12 +57,12 @@ function _init_network() {
echo "* setting up docker network"
docker network create --driver bridge \
--subnet $LAN_SUBNET \
$LAN_NAME
$LAN_NAME || exit 1
docker network create --driver macvlan \
-o parent=$WAN_PARENT \
--subnet $WAN_SUBNET \
$WAN_NAME
$WAN_NAME || exit 1
}
function _set_hairpin() {