Skip to main content

Docker Success Center

The Docker enterprise customer portal.

Docker, Inc.

Firewalld problems with container to container network communications

Issue

Using ssh to connect from one container to another container on a different node works. However, running ssh from one container to another container on the same node does not work. 

Solution


Firewalld uses the NetworkManager backend. The firewalld commands to resolve this connection issue are similar to the following:

firewall-cmd --permanent --zone=trusted --add-interface=docker0
firewall-cmd --permanent --zone=trusted --add-port=4243/tcp
  • Was this article helpful?