Generate a new recovery codeEstimated reading time: 1 minute
If you have lost your two-factor authentication recovery code and still have access to your Docker Hub account, you can generate a new recovery code.
Two-factor authentication is enabled on your Docker Hub account.
Generate a new recovery code
To disable two-factor authentication, log in to your Docker Hub account. Click on your username and select Account Settings. Go to Security and click on Click here to generate a new code.
Enter your password.
Your new recovery code will be displayed. Remember to save your recovery code and store it somewhere safe.Docker, docker, registry, security, Docker Hub, authentication, two-factor authentication