Skip to content

Commit

Permalink
Run the install container in host network namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
neelimamukiri committed Mar 9, 2017
1 parent 4780ce1 commit 8147d42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/ansible/install_swarm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Ansible options. By default, this specifies a private key to be used and the vagrant user
ans_opts=""
ans_user="vagrant"
ans_user="root"
ans_key=$src_conf_path/insecure_private_key
install_scheduler=""

Expand Down Expand Up @@ -158,4 +158,4 @@ ansible_mount="-v $(pwd)/ansible:/ansible:Z"
config_mount="-v $src_conf_path:$container_conf_path:Z"
cache_mount="-v $(pwd)/contiv_cache:/var/contiv_cache:Z"
mounts="$install_mount $ansible_mount $cache_mount $config_mount"
docker run --rm $mounts $image_name sh -c "./install/ansible/install.sh $netmaster_param -a \"$ans_opts\" $install_scheduler -m $contiv_network_mode -d $fwd_mode $aci_param $cluster_param"
docker run --rm --net=host $mounts $image_name sh -c "./install/ansible/install.sh $netmaster_param -a \"$ans_opts\" $install_scheduler -m $contiv_network_mode -d $fwd_mode $aci_param $cluster_param"

0 comments on commit 8147d42

Please sign in to comment.