Containers in the same docker network have access to exposed ports.
docker network create sample
docker run --net sample --name keys consul agent -server -client=0.0.0.0 -bootstrap
Consul's Dockerfile exposes 8500, 8600, and several more ports. To demonstrate, run another container in the same ...