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’
2
Answers
Thank you @olakunle for your response. So I disactivated my account created with google Auth to create another one to log in with my username. When I try to connect, I get this error:
error during connect: this error may indicate that the docker daemon is not running: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/auth": open //./pipe/docker_engine: Access is denied.
Seems like the service is not running even though it is running as you can see below:The
--email
flag fordocker login
has been deprecated. To push an image to Docker Hub, use the following steps:docker login
and enter your Docker Hub username and password when prompted:Replace
user_name
with your Docker Hub username andmy_image
with the name of your image. Ensure your image is correctly tagged with your username and repository name before pushing.