首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >码头客登入给假“成功”的回应?

码头客登入给假“成功”的回应?
EN

Stack Overflow用户
提问于 2017-10-05 20:18:20
回答 1查看 155关注 0票数 0

版本

代码语言:javascript
复制
[root@pecan-9A 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中失败

代码语言:javascript
复制
[root@pecan-9A 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

[root@pecan-9A firstDocker]# docker-latest login hub.docker.com
Username: leeyuiwah         (valid account)
Password:                   (type in a bogus password)
Login Succeeded

下一步命令将失败

代码语言:javascript
复制
[root@pecan-9A firstDocker]# docker-latest  tag friendlyhello hub.docker.com/leeyuiwah/get-started:part2
[root@pecan-9A 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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-10-05 21:52:26

我建议先升级一下,1.13是一个9个月前的版本。这也可能是由您的网络上的http代理造成的。

代码语言:javascript
复制
$ 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 (*****): 
Password: 
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password

$ docker version
Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:40:46 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:39:27 2017
 OS/Arch:      linux/amd64
 Experimental: true
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46594141

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档