0
[[email protected] firstDocker]# docker-latest --version
Docker version 1.13.1, build 6774275/1.13.1
为docker login
伪造回应?
我使用了一个(非常有可能)不存在的帐户,或者我使用了有效帐户 ,但是密码错误。在两种情况下, 的响应是Login Succeeded
。但后来以下命令 (docker-latest push
)我会失败,Index response didn't contain any endpoints
[[email protected] firstDocker]# docker-latest login hub.docker.com
Username (leeyuiwah): bogus (I don't think this is a valid account)
Password: (just type in some junk)
Login Succeeded
[[email protected] firstDocker]# docker-latest login hub.docker.com
Username: leeyuiwah (valid account)
Password: (type in a bogus password)
Login Succeeded
下一个命令就会失败
[[email protected] firstDocker]# docker-latest tag friendlyhello hub.docker.com/leeyuiwah/get-started:part2
[[email protected] firstDocker]# docker-latest push hub.docker.com/leeyuiwah/get-started:part2
The push refers to a repository [hub.docker.com/leeyuiwah/get-started]
3088bc0df692: Preparing
fa9c71108753: Preparing
4cc654f2b860: Preparing
24b02a08f57d: Preparing
aed9311ebf15: Preparing
17f9d9d4ce37: Waiting
18f9b4e2e1bc: Waiting
Index response didn't contain any endpoints