Docker Community Forums

Share and learn in the Docker community.

How to get the Actual server hostname inside docker container using docker compose

(Rajendraprasad) #1


I am running multiple services inside docker container using docker-compose. I want the hostname of the server inside docker container but not container hostname because I want the same hostname for all the services in which server the docker is running.

Thanks in advance.