DockerConnecting Containers


tty:trueIn docker-compose.yml, the tty: true flag keeps the container's sh command running waiting for input.


The host and bridge network drivers are able to connect containers on a single docker host. To allow containers to communicate beyond one machine, create an overlay network. Steps to create the network depend on how your docker hosts are managed.