2 docker machine add 2 consul instance
What
i run 2 docker machine , and want to instance each consul in each machine.
How
1. first machine is leader and it's ip is 192.168.3.131
2. second machine is slave and it's ip is 192.168.3.132
Other
> Error: network may be misconfigured
> Error: foreign ip cannot access http://192.168.3.131:8500/ui/
add
>
i run 2 docker machine , and want to instance each consul in each machine.
How
1. first machine is leader and it's ip is 192.168.3.131
docker run --restart=always -d -v /data:/data -p 8300:8300 -p 8301:8301 -p 8301:8301/udp -p 8302:8302 -p 8302:8302/udp -p 8400:8400 -p 8500:8500 -p 8600:8600 consul agent -server -bootstrap-expect 2 -ui -client 0.0.0.0 -advertise 192.168.3.131 -node=local
2. second machine is slave and it's ip is 192.168.3.132
docker run --restart=always -d -v /data:/data -p 8300:8300 -p 8301:8301 -p 8301:8301/udp -p 8302:8302 -p 8302:8302/udp -p 8400:8400 -p 8500:8500 -p 8600:8600 consul agent -server -ui -client 0.0.0.0 -advertise 192.168.3.132 -node=master1 -join 192.168.3.131
Other
> Error: network may be misconfigured
> Error: foreign ip cannot access http://192.168.3.131:8500/ui/
add
-p 8300:8300 -p 8301:8301 -p 8301:8301/udp -p 8302:8302 -p 8302:8302/udp -p 8400:8400 -p 8500:8500 -p 8600:8600
>
Comments