Recover your Docker account
If you lose your two-factor authentication recovery code, or lose access to both your authenticator app and your recovery code, you can generate a new code or contact Support to recover your account.
Generate a new recovery code
If you lost your two-factor authentication recovery code but still have access to your Docker Hub account, you can generate a new recovery code.
- Sign in to your Docker account with your username and password.
- Select your avatar and from the drop-down menu, select Account settings.
- Select 2FA.
- Enter your password, then select Confirm.
- Select Generate new code.
This generates a new code. Select the visibility icon to view the code. Save your recovery code and store it somewhere safe.
Recover your account without access
If you lost access to both your two-factor authentication application and your recovery code, you can't complete the normal sign-in process because you don't have the required 2FA verification code.
Complete the Contact Support form with the primary email address associated with your Docker ID and follow the recovery instructions provided by Docker Support.