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
Options: --debug, -D Enable debug mode --storage-path, -s "/root/.docker/machine" Configures storage path [$MACHINE_STORAGE_PATH] --tls-ca-cert CA to verify remotes against [$MACHINE_TLS_CA_CERT] --tls-ca-keyPrivate key to generate certificates [$MACHINE_TLS_CA_KEY] --tls-client-cert Client cert to use for TLS [$MACHINE_TLS_CLIENT_CERT] --tls-client-key Private key used in client TLS auth [$MACHINE_TLS_CLIENT_KEY] --github-api-token Token to use for requests to the Github API [$MACHINE_GITHUB_API_TOKEN] --native-sshUse the native (Go-based) SSH implementation. [$MACHINE_NATIVE_SSH] --bugsnag-api-tokeBugSnag API token for crash reporting [$MACHINE_BUGSNAG_API_TOKEN] --help, -h show help --version, -v print the version
Commands: active Print which machine is active configPrint the connection config for machine create Create a machine env Display the commands to set up the environment for the Docker client inspectInspect information about a machine ipGet the IP address of a machine killKill a machine lsList machines provision Re-provision existing machines regenerate-certs Regenerate TLS Certificates for a machine restart Restart a machine rm Remove a machine ssh Log into or run a command on a machine with SSH. scp Copy files between machines mount Mount or unmount a directory from a machine with SSHFS. start Start a machine status Get the status of a machine stop Stop a machine upgrade Upgrade a machine to the latest version of Docker url Get the URL of a machine version Show the Docker Machine version or a machine docker version help Shows a list of commands or help for one command
Run 'docker-machine COMMAND --help' for more information on a command.