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
Based on docker documentation: https://docs.docker.com/compose/compose-file/#/command
I simply put hostname: in my docker-compose file.
hostname:
E.g.:
[...] lb01: hostname: at-lb01 image: at-client-base:v1 [...]
and container lb01 picks up at-lb01 as hostname.
at-lb01