我试图在码头上运行,并获得TCP 127.0.0.1:5000: connection拒绝连接。有人能解释一下为什么会发生这种事吗?我怎么能解决它。
这是我累了的地方:
docker run -it --privileged --name docker-server-test -d docker:1.7-dind
docker run --rm --link docker-server:docker docker:1.7 pull my-server:5000/qe/busybox
Unable to find image 'docker:1.7' locally
Trying to pull repository docker.io/library/docker ... 1.7: Pulling from library/docker
f4fddc471ec2: Already exists
da0daae25b21: Already exists
413668359dd0: Already exists
ab205815427f: Already exists
e8ace195c6b6: Already exists
2129588b76a3: Already exists
63f71ebd654b: Already exists
f3231b3888dd: Already exists
d449c5a1e017: Already exists
library/docker:1.7: The image you are pulling has been verified.
Important: image verification is a tech preview feature and should not be relied on to provide security.
Digest: sha256:c3666cc6458e02d780492c75acf1b0bf3424c8dd6882361438a9b93b46c2aa55
Status: Downloaded newer image for docker.io/docker:1.7
Pulling repository my-server:5000/qe/busybox
Get http://localhost:5000/v1/repositories/qe/busybox/tags: dial tcp 127.0.0.1:5000: connection refused发布于 2015-12-18 07:11:00
看起来,您试图从运行在本地机器上的注册表中提取图像--在本例中,当您指定localhost作为从中提取图像的位置时,它试图相对于Docker守护进程容器(这不是您的注册表正在侦听的位置)从localhost中提取图像。您可能希望从host-ip:5000/qe/busybox (可能类似于192.168.0.x:5000/qe/busybox)中退出。
发布于 2015-12-23 04:57:51
你有env变量集吗?根据您的操作系统,如果尚未设置,请设置以下Docker env变量:
您可以从您的码头客户端获取这些详细信息。
docker-machine env defaulthttps://stackoverflow.com/questions/34341899
复制相似问题