When Core-Command cannot find a DS launched via localhost (or 127.0.0.1)

TL;TR:

Use 172.17.0.1 (docker’s bridge IP address) for the Host address in the configuration.toml of the DS.

Why:

In Docker environment, the localhost and 127.0.0.1 is not known to the containers.
So that Core-Command’s log (docker logs edgex-core-command) says:

  • ERROR: 127.0.0.1 not found (or something similar)

However, the 172.17.0.1 can be different so that please check with this command:

ip addr show docker0