Score:0

Docker Swarm connection refused only one node

cn flag

Running a docker swarm cluster with 3 nodes where only 2 are workers.

All DNS names of the services are pointed towards the Node A. The problem was discovered because when using a registry repo one of the nodes would never fetch the images. When I checked it, I found that no matter what is done everything running from the Node A cli (like a curl to the Repo URL) gets a connection refused. We tested with other services and we found that nothing is accessible from Node A.

However what makes it even more tricky is that from outside (LAN network) everything runs fine. Regardless if containers are in Node A or Node B. We actually deployed a whoami stack globally and we can see traffic routed to both containers.

If in Node A we create a Host entry in hosts file pointing the DNS names to Node B IP everything works fine and a curl command works fine even if container is on Node A.

OS is Ubuntu 20.04 for the nodes.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.