Revoke Deploy Token
If a deploy token is compromised or you don’t need it anymore, you can revoke it. This will make the token invalid and it can’t be used anymore to deploy containers.
Steps to revoke a deploy token
To open the CLI, run the following command:
Then select the option “Revoke a Deploy Toke” and press enter. After that the wizard asks you to paste the deploy token you want to revoke. If the token is valid, not expired and not already revoked, it will be revoked and you will get a success message. After that you need to restart the Docker Deploy API container for this to take effect.
Technical Details
The Docker Deploy API stores a sha512
hash of the revoked tokens in a file called revoked-tokens.json
in the /data
directory.