Docker Getting Started Issue Log

I have nothing to do recently. During the process of installing and using Docker, as a novice, I read the documentation while installing practice. New technologies will always encounter new problems. Based on the principle that good memory is not as good as bad writing, I will record them one by one. Right :

Question 1:
I am an MBP, the installation process is very simple, just pull and drag to complete, then open the terminal and run the command to see the result. . .
MacBook-Pro:~$ docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password.
See 'docker run --help'.

This... this... this... swollen what a situation, google it on Baidu, hoo hoo, as witty as me, the answer will come out immediately, the original official document is naughty, and there is one less login operation (when the first Before running any docker command once, please run docker login)! ! ! Then let's do something practical and go -->>
MacBook-Pro:~$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (***@***.com):
Password:
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password

I went to go. Is it a bear? ? Isn't my ID ***@***.com? The password is not wrong! What should I do if I am swollen? At this time, a flash of inspiration, go to the official homepage ( https://hub.docker.com/ ) to take a look, hum.
Ouch! Yes! Yes! ! Yes! ! ! At this moment, I remember everything! Walk inside you -->>
MacBook-Pro:~$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username (***@***.com): xmaster
Password:
Login Succeeded

Pinch hahaha~ This is the end of this question! In the next book. . . Actually, I am an actor~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326221008&siteId=291194637
Recommended