Docker1.12 Worker not able to join in cluster(Swarm: Pending)

后端 未结 6 1123
南旧
南旧 2021-01-13 23:56

Manager Version Docker version 1.12.0-rc5, build a3f2063,

Worker version Docker version 1.12.0-rc5, build a3f2063.

Created Swarm m

6条回答
  •  独厮守ぢ
    2021-01-14 00:23

    Just expose port 2377 of manager, it will work.

    It clearly means node unable to connect manager, so timeout happening to conform same just do telnet manager-ip 2377 (don't try ping, won't work).

    And if you are facing the same error even though all firewalls are disabled in both nodes and manager, then try to create another manager exposing port 2377 as below:

    docker-machine create --driver amazonec2 --amazonec2-open-port 2377 manager1
    

    And now try to join nodes to new manager created now, but port you are using to join should be 2377 if you gonna use diff then expose that port in above command. Doing same worked for me as I suspect it's because others used other different servers but I'm using same server for both manager and nodes.

提交回复
热议问题