Docker hello-world: authentication error

前端 未结 10 2189
刺人心
刺人心 2020-12-13 01:45

I\'m just getting started with docker. I\'m following the instructions specified here https://docs.docker.com/windows/step_one/

I installed docker (1.10.2) on window

相关标签:
10条回答
  • 2020-12-13 02:01

    run docker login to execute any other docker commands. or just logout if you want to use public hubs docker logout

    0 讨论(0)
  • 2020-12-13 02:05

    On macOS you need to login from the commandline using

    docker login

    Also you must use your username and not your email

    0 讨论(0)
  • 2020-12-13 02:06

    on ubuntu:

    docker login
    

    so if you don't know your username password, you probably haven't created one. what you should do, is go and create an id on docker visit: official docker webpage

    just like any other github accout ,they will ask you for the username, provide one and they will authenticate same as github, once done , put your email and password. verify it and you are now good to go.

    ok! now coming to the point... if you were facing the problem like the problem statement , just do

    docker login 
    

    enter username and password, that you just provided . you will be displayed ,"LOGIN succeeded"

    now run this command

    docker run hello-world
    

    beware of the dash '-' sign , i myself stuck with this issue, and you are done.

    thanks:)

    0 讨论(0)
  • 2020-12-13 02:09

    For those who logged in via their email address associated with their account during the Docker desktop installation process - this problem seems to occur because the terminal has also stored those credentials, but for some reason it only accepts login's via your actual username.

    If you go to DockerHub you should see it in the upper right corner.

    Try running docker login with that username, and you should be all set!

    docker login
    
    # username from dockerhub
    # the same password
    
    0 讨论(0)
  • 2020-12-13 02:10

    I have solved this issue in macOS Mojave (version : 10.14.3)

    docker login
    

    Login with your username not email id then its working fine.

    0 讨论(0)
  • 2020-12-13 02:19

    Probably it can happen if you were logged in before, by console or by kitematic.

    You can try docker logout if you want use docker without auth.

    In this case Authentication is required: shouldn't appear again.

    0 讨论(0)
提交回复
热议问题