From 8147d426ae86dcdc07c003e56907ea0f368edab5 Mon Sep 17 00:00:00 2001 From: Neelima Mukiri Date: Thu, 9 Mar 2017 11:49:03 -0800 Subject: [PATCH] Run the install container in host network namespace --- install/ansible/install_swarm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/ansible/install_swarm.sh b/install/ansible/install_swarm.sh index 3b247bc..a8cd7a6 100755 --- a/install/ansible/install_swarm.sh +++ b/install/ansible/install_swarm.sh @@ -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="" @@ -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"