4575b7b2f7
Change-Id: I828751cb631930099770c301b0ec2df802fcbf52 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
13 lines
486 B
Bash
Executable File
13 lines
486 B
Bash
Executable File
#!/bin/sh
|
|
# FIXME(bogdando) w/a unimplemented docker networking, see
|
|
# https://github.com/mitchellh/vagrant/issues/6667.
|
|
# Create the docker solar net
|
|
if ! docker network inspect solar >/dev/null 2>&1 ; then
|
|
docker network create -d bridge \
|
|
-o "com.docker.network.bridge.enable_icc"="true" \
|
|
-o "com.docker.network.bridge.enable_ip_masquerade"="true" \
|
|
-o "com.docker.network.driver.mtu"="1500" \
|
|
--gateway=$1 --ip-range=$2 --subnet=$3 \
|
|
solar >/dev/null 2>&1
|
|
fi
|