Closed shaunsmith closed 6 years ago
A portable expression you can use that works on both Linux and Mac is:
DOCKER_LOCALHOST=$(docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}')
The current expression only works on Mac but on Linux is null which means the URLs constructed are broken.
Huh. I did all my testing on linux. Thanks for the update though.
A portable expression you can use that works on both Linux and Mac is:
DOCKER_LOCALHOST=$(docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}')
The current expression only works on Mac but on Linux is null which means the URLs constructed are broken.