Docker Community Forums

Share and learn in the Docker community.

How to customize docker.local host?


(Samir Sabri) #1

How would I customize docker.local to something else ? ex: ?
I tried to ping docker.local and then I used the IP address in host file to map for 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 [] with 32 bytes of data:
Reply from 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.