Skip to main content

Docker Swarm Join Token

Description#

General#

  • Documentation: https://docs.docker.com/engine/reference/commandline/swarm_join-token/
  • Summary: Docker Swarm allows management and orchestration of Docker applications on a cluster of hosts. In order to join a Swarm as a worker or a manager, a host must provide the corresponding token.
  • IPs allowlist: This feature is not available.
  • Scopes: Tokens are specific to a swarm.

Revoke the secret#

You can rotate a token using the cli command docker swarm join-token --rotate manager|worker

Check for suspicious activity#

Not available.

Details for Docker swarm join token#

  • Family: Api

  • Category: Other

  • Company: Docker

  • High recall: True

  • Validity check available: False

  • Minimum number of matches: 1

  • Occurrences found for one million commits: 12.4

  • Prefixed: True

  • PreValidators:

- type: ContentWhitelistPreValidator  patterns:  - swmtkn-

Examples#

- text: >    docker swarm join --token SWMTKN-1-568yx01nhrpkwi5di41zas2v5039q7riq6cys840ml1i18t9m9-4xr7lve30qn7krdtpmusgddkq  apikey: SWMTKN-1-568yx01nhrpkwi5di41zas2v5039q7riq6cys840ml1i18t9m9-4xr7lve30qn7krdtpmusgddkq
- text: >    docker swarm join --token SWMTKN-2-1-568yx01nhrpkwi5di41zas2v5039q7riq6cys840ml1i18t9m9-4xr7lve30qn7krdtpmusgddkq  apikey: SWMTKN-2-1-568yx01nhrpkwi5di41zas2v5039q7riq6cys840ml1i18t9m9-4xr7lve30qn7krdtpmusgddkq
- text: >    - name: Add nodes      community.docker.docker_swarm:        state: join        advertise_addr: 192.168.1.2        join_token: SWMTKN-1-568yx01nhrpkwi5di41zas2v5039q7riq6cys840ml1i18t9m9-aia4nyrqci6wliru6um99kgb2        remote_addrs: [ '192.168.1.1:2377' ]  apikey: SWMTKN-1-568yx01nhrpkwi5di41zas2v5039q7riq6cys840ml1i18t9m9-aia4nyrqci6wliru6um99kgb2