Communicate with other container in bridge when using network_mode: host

Hello, I have two docker images, say A and B.

According to documentation, I should be able to ping container A from B, however I am getting “bad address”. I am running a node.js server and I’m trying to get a response from a GET request.

Note that both instances are using network_mode: host in docker-compose as this is what I need for a plugin. Removing the line solves my issue.

How shall I procceed?

Hello @tommyzat thank you for your message! Welcome to the balena community :slight_smile:

How are you trying to send the GET request? Do you expose any port on the docker-compose? Could you please share the code and the error that you get?