I followed the instructions in cosul docker hub documentation to start the server in an Eucalyptus cloud. However other than using local host the Http port is not getting exposed out
export CONSUL_LOCAL_CONFIG=/root/consul.json
From 1
docker run -d --net=host -e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}' consul agent -server -bind=127.0.0.1 -bootstrap-expect=1
Putting bind address as 127.0.0.1 is not ever starting the server; Giving the IP adress, the server is starting but bot accessible out. I tried -P and -p 8500:8500 also. Still not able to connect from another machine.
Note that this machine had a private IP as well as public IP.
So I am guessing that is the reason why -net-host is not starting on the bind address Still not clear. Two similar threads I found which may explain this
Docker container doesn't expose ports when --net=host is mentioned in the docker run command