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

后端 未结 6 1064
南旧
南旧 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:22

    According to dockers website Here they stated the ports to enable. Run the following commands on both the Swam Manager and worker nodes

    sudo ufw enable
    sudo ufw allow 22/tcp
    sudo ufw allow 2376/tcp
    sudo ufw allow 2377/tcp
    sudo ufw allow 7946/tcp
    sudo ufw allow 7946/udp
    sudo ufw allow 4789/udp
    sudo ufw reload
    

    We just gave access to the neccessary port. After running these commands, all docker commands should be working now.

提交回复
热议问题