mjg123 / mjg123.github.io

MIT License
1 stars 2 forks source link

Flow 101 & 102 DOCKER_LOCALHOST broken on linux #3

Closed shaunsmith closed 6 years ago

shaunsmith commented 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.

mjg123 commented 6 years ago

Huh. I did all my testing on linux. Thanks for the update though.