docker network connect app-backend myAwesomeApp-1
This command attaches the myAwesomeApp-1
container to the app-backend
network. When you add a container to a user-defined network, the embedded DNS resolver (which is not a full-featured DNS server, and is not exportable) allows each container on the network to resolve each other container on the same network. This simple DNS resolver is not available on the default bridge bridge
network.