2017-09-08 5 views
0

AWS의 EC2에 무리하는노동자, 내가 AWS EC2에 새로운 오전

목적 연결할 수 없습니다 : 노동자와 다른 두 인스턴스를 EC2에 우분투 기계의 3 개 인스턴스를 생성하고 첫 번째 인스턴스에 떼를 초기화하고 추가하려면를 떼.

오류 : 스웜 초기화가 잘 작동하지만 무리에 근로자를 추가하면 I에 유래 (Docker 1.12.1: after swarm init, workers unable to join swarm)에서 관련 질문을 살펴 보았다 그러나 그 해결책은 내 경우

을에서 작동하지 않습니다

~$ docker swarm join --token SWMTKN-1-4yquvx0xihdhcv0m1vmxmbq4q45hoanm9ig00pue7opx3dhc1s-2ybrjxx97mpjyo351sx8jyisp 172.31.31.41:2377 
Error response from daemon: Timeout was reached before node was joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node. 

~$ docker info 
***** 
Swarm: error 
NodeID: 
Error: rpc error: code = DeadlineExceeded desc = context deadline exceeded 
Is Manager: false 
****** 

오류를 발생

다른 2 개의 인스턴스가 웜에 가입하는 방법

답변

1

이것은 보안 설정에 문제가있는 것 같습니다. , iptables -S을 노동자에

Custom TCP Rule TCP 2377 swarm + remote mgmt 
Custom TCP Rule TCP 7946 swarm 
Custom UDP Rule UDP 7946 swarm 
Custom UDP Rule UDP 4789 swarm 

Custom TCP Rule TCP 7946 swarm 
Custom UDP Rule UDP 7946 swarm 
Custom UDP Rule UDP 4789 swarm 

https://gist.github.com/BretFisher/7233b7ecf14bc49eb47715bbeb2a2769

는 또한 ufw status을 확인 자세한 내용은 아래를 참조 : 필요한 모든 포트가 관리자에

열려 있는지 확인 및 sestatus이 액세스를 차단하지 않는지 확인하십시오.