docker run -d -t -i --name consul -p 8500:8500 docker.io/consul:0.9.3 CONSUL_IP=`docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' consul`