In my docker-compose.yml file, I have the following. However the container does not pick up the hostname value. Any ideas?
docker-compose.yml
dns: image: phensle
This issue is still open here: https://github.com/docker/compose/issues/2925
You can set hostname but it is not reachable from other containers. So it is mostly useless.