问题1:
本人MBP,安装过程很简单,一拉一拽就完成了,然后打开终端运行命令瞅瞅,结果。。。
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'.
这.这..这...肿么个情况,百度上google一下吧,吼吼,机智如我,答案呼之就出了,原来官方文档上调皮了下,少了一步login操作(当第一次运行任何docker命令前,请运行docker login)!!!那咱就来点实际的,走着-->>
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
我了个去去的。熊么?? 我的ID不是***@***.com么?密码也没输错啊!肿么办肿么办?此时灵光一闪,去官方主页( https://hub.docker.com/ )瞅瞅去,哼哼。
唉哟!是的!是的!!是的!!!此刻的我熊么都想起来了!走着您内-->>
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
捏哈哈哈哈〜本问题到此结束! 下回书说到。。。其实,我是个演员〜