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~