solar/bootstrap/playbooks/docker_pre.sh
Bogdan Dobrelya 4575b7b2f7 Separate vagrantfile for the docker provider
Change-Id: I828751cb631930099770c301b0ec2df802fcbf52
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-02 13:37:19 +01:00

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