gcgarner / IOTstack

docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.5k stars 578 forks source link

Issue with networking between containers and ECONNREFUSE error message #168

Open Securethingsuk opened 4 years ago

Securethingsuk commented 4 years ago

I have installed the Container and tried to link NodeRed to Influxdb but get the following message. It seem reading arround the subject that each container has different internal 127. xxxxxxxx Ip address and not use 127.0.0.1 for all the containers is this correct. How can you link Node red to Influxdb?

msg : error "Error: connect ECONNREFUSED 127.0.0.1:8086"

MAny thanks for the code, But is this an error or planned arrangement.

Paraphraser commented 4 years ago

Hi,

Please read this gist. It covers the network setup side of things in detail.

Basically, each container implements its own 127.0.0.1 so you can’t use that to talk between containers. You use the container name which doubles as a domain name.

Securethingsuk commented 4 years ago

Ok many thanks for your help . Simon

Sent from my iPhone

On 4 Apr 2020, at 01:16, Phill notifications@github.com wrote:

 Hi,

Please read this gist. It covers the network setup side of things in detail.

Basically, each container implements its own 127.0.0.1 so you can’t use that to talk between containers. You use the container name which doubles as a domain name.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.