root@aws01:/home/ubuntu# docker swarm leave Node left the swarm. root@aws01:/home/ubuntu# docker swarm join --token SWMTKN-1-67inqm9tz1k8dw5r2izextx7i33m9vz46eqt926zln2vjx1x31-3yclb3lqqhradd7ay7s2u6jue 172.31.24.248:2377 Error response from daemon: Timeout was reached before node 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.
무조건 포트가 열려있는지 확인해야함 (vm 이든, host 든 클러스터를 구성할 호스트 OS 에서 방화벽 확인해야 한다.)
For anyone that does not wish to completely purge AppArmor. Check status: sudo aa-status Shutdown and prevent it from restarting: sudo systemctl disable apparmor.service --now Unload AppArmor profiles: sudo service apparmor teardown Check status: sudo aa-status You should now be able to stop/kill containers.
$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ecd5eab98011 nginx:1.13 "nginx -g 'daemon of…" 3 weeks ago Up 2 days 0.0.0.0:80->80/tcp backend_nginx_1 dc1cf4cc07a4 backend_djangoapp "./ready.sh" 3 weeks ago Up 2 days 8000/tcp backend_djangoapp_1 ce80ad93f1eb test_db "docker-entrypoint.s…" 6 weeks ago Up 2 days 0.0.0.0:5432->5432/tcp database1