How to customize docker.local host?

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.

1 Like

I would also like to know this.

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.

I haver done this as a workaround.