Keys / Docker Hub
DOCKERHUB_TOKEN
The Docker personal access token CI signs in to Docker Hub with, in place of your password.
- Expires
- never by default; or 30 days, 90 days or a date up to 1 year
- API
- create, list, update, deactivate and delete
Get it
Create one on app.docker.com/settings/personal-access-tokens. The steps aren't recorded yet.
Set it
DOCKERHUB_TOKEN=...
Docker doesn't read it by name; your CI passes it to docker login or docker/login-action as the password. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- Generate a new token with the same repository permission and Cloud Sandboxes access.
- Deploy it everywhere that reads
DOCKERHUB_TOKEN. - Check the old token's last-used date, then deactivate it. You can activate it again if something breaks.
- Once everything works with the new token, delete the old one.
Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.