I WANT TO CONNECT FROM A CONTAINER TO A SERVICE ON THE HOSTに書かれているdocker.for.mac.localhost
で、下記のようにコンテナの中からMacのIPアドレスを引くことができます。
$ nmap -Pn -p 8080 docker.for.mac.localhost Starting Nmap 7.40 ( https://nmap.org ) at 2017-10-15 00:37 JST Nmap scan report for docker.for.mac.localhost (192.168.5.1) Host is up (0.00038s latency). Other addresses for docker.for.mac.localhost (not scanned): PORT STATE SERVICE 8080/tcp open http-proxy Nmap done: 1 IP address (1 host up) scanned in 0.03 seconds $