Docker Community Forums

Share and learn in the Docker community.

Access docker /etc/hosts from the host machine

I’m working on my company project, they asked me to create a Docker image for it,
The project required a hostname and domain to be as the following xx.domain.com

How to create the following subDomain inside the docker container and access it from the host machine,
Or what is the best way to solve the issue.