Docker has a DNS server built into the platform, which is used by containers for service discovery. I started the NerdDinner database container with an explicit name, and any other containers running in the same Docker network can access that container by its name, in exactly the same way as a web server would access a remote database server by its DNS hostname:
This makes application configuration much simpler than a traditional distributed solution. Every environment will look the same in dev, QA, and production, the web container will always connect to a database using the hostname ...