Skip to content
Permalink
Browse files

fix search ip

  • Loading branch information...
thanhson1085 committed Nov 27, 2018
1 parent bebc094 commit 0dc9d67436df5c78230bfbb30732b39d24f98589
Showing with 1 addition and 1 deletion.
  1. +1 −1 Vagrantfile.main
@@ -50,7 +50,7 @@ Vagrant.configure('2') do |config|
cd ${HOME}/go/src/github.com/ethereum/go-ethereum && make all
curl -sSL https://get.docker.com/ | sh
export HOST_IP=`ifconfig | grep 'inet' | grep -v inet6 | grep -v '127.0.0.1' | grep -v 'broadcast 172.17.255.255' | awk '{ print $2}'`
export HOST_IP=`ifconfig | grep 'inet' | grep -v inet6 | grep -v '127.0.0.1' | grep -v 'broadcast 172.*.255.255' | awk '{ print $2}'`
docker swarm init --advertise-addr ${HOST_IP}
cd /tmp && wget https://releases.hashicorp.com/consul/1.4.0/consul_1.4.0_linux_amd64.zip && unzip consul_1.4.0_linux_amd64.zip && chmod +x consul && mv consul /usr/bin/consul

0 comments on commit 0dc9d67

Please sign in to comment.
You can’t perform that action at this time.