[How to Solve] no suitable node (host-mode port already in use on 1 node)

This error means: no suitable node (host mode port has been used on 1 node)

In fact, it means that the port has already been used by a node, and there are other nodes that cannot be used if they want to use it.

Why is this so? Because I opened up port mapping in compose.yaml

Replicas: 2, but the port mapping is released 8080:8080, three nodes, but the server has only one 8080, the first one occupies 8080, the others will not be able to get up after that,

The solution is: just remove the port mapping. The production environment does not require others to access the service through the 8080, so there is no need to open the 8080 mapping.

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *