Share feedback
Answers are generated based on the documentation.

Access tokens

Access tokens let you authenticate to Docker Hub without using your password. Use a token for the Docker CLI, automation, and any account that has two-factor authentication (2FA) or enforced single sign-on (SSO), because password sign-in to the CLI is not supported in those cases.

Choose a token type

TokenOwnershipUse whenLimitations
Personal access token (PAT)Tied to an individual Docker accountCLI access, local tools, and automation that should run as you. Required for CLI sign-in when 2FA is on or SSO is enforcedAccess ends if the account leaves the organization or the token is revoked
Organization access token (OAT)Owned by the organization. Any organization owner can manage itCI/CD and other automation that must keep working when membership changesIncompatible with Docker Desktop and Image Access Management

For GitHub Actions, OIDC connections are an alternative to storing a long-lived organization access token.

Next steps