How to get Docker host ip
Hello,
In case when you need to get IP address of your docker host, for example, for using inside containers; you can use the command:
ipconfig getifaddr en0
And also, you can use it in your docker-compose.yml like this:
extra_hosts: - "name-inside-container:192.168.0.122"
Inside your container you can use name — name-inside-container — for making your requests.