It's not a problem to resolve a hostname or an alias inside a network of docker containers,
but there's currently no tool to export a /etc/hosts
style list of docker container IPs and their hostnames and aliases for your docker host.
Format the docker inspect
output in /etc/hosts
style.