skip to Main Content

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


  1. Chosen as BEST ANSWER

    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: Daemon running


  2. The --email flag for docker login has been deprecated. To push an image to Docker Hub, use the following steps:

    1. Run docker login and enter your Docker Hub username and password when prompted:
      $ docker login
      Username: your_dockerhub_username
      Password:
      
    2. Successfully logged in, push your image with:
      docker push user_name/my_image:latest
      

      Replace user_name with your Docker Hub username and my_image with the name of your image. Ensure your image is correctly tagged with your username and repository name before pushing.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search