Docker Community Forums

Share and learn in the Docker community.

How to customize docker.local host?

beta
docker

(Samir Sabri) #1

How would I customize docker.local to something else ? ex: mycompany.com ?
I tried to ping docker.local and then I used the IP address in host file to map for mycompany.com but it didn’t work…

Please advice.


(Rui Lopes da Silva) #2

I would also like to know this.


(Michael Friis) #3

What’s your use case for this?

You can get the IP of the Docker VM:

ping docker -4

Pinging docker [10.0.75.2] with 32 bytes of data:
Reply from 10.0.75.2: bytes=32 time<1ms TTL=64

Adding an entry to the hosts file using that IP worked fine for me.


(Rui Lopes da Silva) #4

I haver done this as a workaround.