TechRepublic published a guide about accessing a 2FA Docker Hub account from the command line
How to access your 2FA Docker Hub account from the command line
With 2FA enabled on your Docker Hub account, you'll find you cannot access it with your user password from within the CLI. Jack Wallen shows you how to make this work.
How to access your 2FA Docker Hub account from the command line