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
It is possible to 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: 3.5
Prefixed: True
PreValidators:
- type: ContentWhitelistPreValidator
patterns:
- swmtkn-
Examples
- text: |
docker swarm join --token SWMTKN-1-568ya21bqrpkwl5di47zcs2v5039p7rie6cbs586ni3i12t3r3-4xr7lve30qn7krdtpmusgddkq
apikey: SWMTKN-1-568ya21bqrpkwl5di47zcs2v5039p7rie6cbs586ni3i12t3r3-4xr7lve30qn7krdtpmusgddkq
- text: |
docker swarm join --token SWMTKN-2-1-568ya21bqrpkwl5di47zcs2v5039p7rie6cbs586ni3i12t3r3-4xr7lve30qn7krdtpmusgddkq
apikey: SWMTKN-2-1-568ya21bqrpkwl5di47zcs2v5039p7rie6cbs586ni3i12t3r3-4xr7lve30qn7krdtpmusgddkq
- text: |
- name: Add nodes
community.docker.docker_swarm:
state: join
advertise_addr: 192.168.1.2
join_token: SWMTKN-1-568ya21bqrpkwl5di47zcs2v5039p7rie6cbs586ni3i12t3r3-aia4nyrqci6wliru6um99kgb2
remote_addrs: [ '192.168.1.1:2377' ]
apikey: SWMTKN-1-568ya21bqrpkwl5di47zcs2v5039p7rie6cbs586ni3i12t3r3-aia4nyrqci6wliru6um99kgb2
# Fat-fingered secret
- text: |
SSWMTKN-2-1-568ya21bqrpkwl5di47zcs2v5039p7rie6cbs586ni3i12t3r3-4xr7lve30qn7krdtpmusgddkq
apikey: SWMTKN-2-1-568ya21bqrpkwl5di47zcs2v5039p7rie6cbs586ni3i12t3r3-4xr7lve30qn7krdtpmusgddkq