Skip to content

Instantly share code, notes, and snippets.

@anokun7
Last active September 16, 2015 18:30
Show Gist options
  • Save anokun7/73617c485c54be8f4d54 to your computer and use it in GitHub Desktop.
Save anokun7/73617c485c54be8f4d54 to your computer and use it in GitHub Desktop.
Swarm Issues
#### Known issues & lessons learned in Swarm:
1. When joining nodes to the cluster (using docker run -d swarm join --addr...), the = between addr is optional.
2. When joining nodes to the cluster (using docker run -d swarm join --addr...), do NOT use tcp:// after --addr.
3. When joining nodes to the cluster (using docker run -d swarm join --addr...), on AWS at least use only the DNS name after --addr.
4. tcp:// is required in the DOCKER_HOST env variable. [ e.g.: export DOCKER_HOST=tcp://<DNS-of-host>:9999 ]
5. In AWS at least, while setting environment variable DOCKER_HOST, use only the DNS hostname and not localhost even if you are on the swarm manager.
@anokun7
Copy link
Author

anokun7 commented Sep 16, 2015

Known issues & lessons learned in Swarm:

  1. When joining nodes to the cluster (using docker run -d swarm join --addr...), the = between addr is optional.
  2. When joining nodes to the cluster (using docker run -d swarm join --addr...), do NOT use tcp:// after --addr.
  3. When joining nodes to the cluster (using docker run -d swarm join --addr...), on AWS at least use only the DNS name after --addr.
  4. tcp:// is required in the DOCKER_HOST env variable. [ e.g.: export DOCKER_HOST=tcp://[DNS-of-host]:9999 ]
    • localhost instead of DNS-of-host may work, but is problematic at least in AWS
  5. In AWS at least, while setting environment variable DOCKER_HOST, use only the DNS hostname and not localhost even if you are on the swarm manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment