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
For docker compose version: "3.4"
It works for me:
services: my-service: hostname: my_host_name
Don't need to use dns. Just use hostname. Compose file version 3 reference