What are the ways get the docker host\'s hostname from inside a container running on that host besides using environment variables? I know I can pass the hostname as
Another option that worked for me was to bind the network namespace of the host to the docker.
By adding:
docker run --net host