Recover your Docker account
{{< summary-bar feature_name="2FA" >}}
This page explains how to recover your Docker account and manage recovery codes for two-factor authentication.
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:
- Sign in to your Docker account with your username and password.
- Select I've lost my authentication device and I've lost my recovery code.
- Complete the Contact Support form.
You must enter the primary email address associated with your Docker ID in the Contact Support form for recovery instructions.