Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Login command in docker when using gmail account

I'm getting started with docker so have created my account on docker hub with my gmail account, have creaeted even a repo there. Now I want to push my repo like: docker push user_name/my_image:latest I get the error:

9733ccc39513: Preparing
denied: requested access to the resource is denied

when searching, I found that I have to login to my account through the terminal. my problem is I have create my account with gmail, so when I tried this found command: docker login --email [email protected] I'm get back this error: 'unknown flag: --email'

Can you please advise something better to push a repo on docker hub?

docker login --email [email protected] I'm get back this error: 'unknown flag: --email'

like image 990
Bigga Avatar asked Oct 14 '25 03:10

Bigga


1 Answers

If your account was initially set up using Google, you'll need to generate an access token (docs) and use it as your password. Alternatively, you can set your password on the Account Settings page.

After obtaining your token or creating the password:

docker login -u your_username
like image 121
mcmimik Avatar answered Oct 18 '25 23:10

mcmimik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!