docker / docs

Source repo for Docker's Documentation
https://docs.docker.com
Apache License 2.0
4.19k stars 7.34k forks source link

How to communicate with different host in different cloud in docker swarm mode #12233

Closed fancofang closed 1 year ago

fancofang commented 3 years ago

Problem description

In my situation:

I try to add some node following swarm mode tutorial "https://docs.docker.com/engine/swarm/swarm-tutorial/add-nodes/", but I am stuck in this error:

ird@instance-2:~$ sudo docker swarm join --token SWMTKN-1-3mf8xca88i3fxfa4ogv2pxn16z9j5okhepc4truv2p5cfd9m80-dx0og16f5mxrmb3473kbf9w7a 192.168.47.222: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.

Suggestions

I know they should work well if they can communicate in a network, but I have no idea how to make them within a network. I appreciata if you can provide some documents letting me get out of the mud.

docker-robott commented 2 years ago

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robott commented 1 year ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked