hashicorp / faas-nomad

OpenFaaS plugin for Nomad
https://www.openfaas.com
MIT License
255 stars 45 forks source link

Work round for Docker for Mac reporting ip as 127.0.0.1 #9

Closed nicholasjackson closed 7 years ago

nicholasjackson commented 7 years ago

When running Nomad under Docker for mac, the ip address for the function is registered as localhost, while this is fine for calling the function the proxy can not use this address as localhost is local to the container and not the address of the host.

A work around is to use the docker for mac host address docker.for.mac.localhost but this should be switched with an environment variable or another mechanism.