Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker登录命令不工作_Docker_Boot2docker_Dockerfile_Dockerhub_Docker Registry - Fatal编程技术网

Docker登录命令不工作

Docker登录命令不工作,docker,boot2docker,dockerfile,dockerhub,docker-registry,Docker,Boot2docker,Dockerfile,Dockerhub,Docker Registry,我已经在我的windows计算机上安装了boot2docker,并在docker hub上创建了一个存储库。我正在尝试在linux shell中使用以下命令登录: docker login --username=myusername --password=mypassword --email=myemail@gmail.com 但我把它装在壳里: 密码字段出现,要求我输入密码,但当我输入并按enter键时,什么也没有发生 想法 检查文件config.json是否存在。通常该文件位于~/.do

我已经在我的windows计算机上安装了boot2docker,并在docker hub上创建了一个存储库。我正在尝试在linux shell中使用以下命令登录:

docker login --username=myusername --password=mypassword --email=myemail@gmail.com
但我把它装在壳里:

密码字段出现,要求我输入密码,但当我输入并按enter键时,什么也没有发生


想法

检查文件
config.json
是否存在。通常该文件位于
~/.docker/
目录下

尝试:


cat~/.docker/config.json

这似乎是一个已知的问题:

第二个链接提供了一个解决方法,但它不适合我

2016年2月更新

应该可以解决这个问题

使用守护程序定义的注册表URL进行docker登录

这允许与Linux守护进程交互的Windows客户端正确使用默认注册表端点,而不是特定于Windows的端点

它在(可能是docker 1.10?)


报告内容如下:

打开配置json文件:
C:\Users\Username\.docker\config.json

它将如下所示:


它不存在。现在我该怎么办?你能树立公众形象吗?另外,您可以尝试
docker version
命令并在此处写入响应吗?$docker版本客户端版本:1.7.1客户端API版本:1.19 Go版本(客户端):go1.4.2 Git提交(客户端):786b29d OS/Arch(客户端):windows/amd64服务器版本:1.7.1服务器API版本:1.19 Go版本(服务器):go1.4.2 Git提交(服务器):786b29d OS/Arch(服务器):linux/AMD64我可以拉取公共映像,因为我可以拉取官方网站docker教程中的hello world示例以及我编辑的whalesay cowsay映像:PR 19891应该可以解决此问题
{
  "auths": {
    "https://index.docker.io/v1/": {
      "auth": "<hash value>",
      "email": "<email-address>"
    }
  }
}
{
  "auths": {
    "https://index.docker.io/v1/": {
      "auth": "<hash value>",
      "email": "<email-d>"
    },
    "https://registry-win-tp3.docker.io/v1/": {
      "auth": "<hash value>",
      "email": "<email-address>"
    }
  }
}
$ docker push username/image-name