无法从存储库下载Docker映像 [英] Cannot download Docker image from repository

查看:74
本文介绍了无法从存储库下载Docker映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在笔记本电脑上创建群组设置。我在笔记本电脑上运行swarm守护程序,并运行2个Ubuntu 14.04 VM作为docker节点。在其中一个节点上,我可以运行swarm,并且可以连接到swarm守护程序。我可以列出带有docker info的节点,并在其上生成一个容器。但是,当我尝试在另一个VM节点上提取群集映像时,出现以下错误:

I am trying to create a swarm setup on my laptop. I am running swarm daemon on laptop, and running 2 Ubuntu 14.04 VM as docker node. On one of the nodes I am able to run swarm and I can connect to swarm daemon. I can list the node with docker info and spawn a container on it. But when I try to pull swarm image on another VM node, I get the following error:

pensu@pensu-virtual-machine:~$ sudo docker pull swarm
Pulling repository swarm
FATA[0025] Get https://index.docker.io/v1/repositories/library/swarm/images: dial tcp: lookup index.docker.io on 127.0.1.1:53: read udp 127.0.1.1:53: i/o timeout 

我检查了一下,有人说这是代理问题。但是我没有使用任何代理服务器。以下是其他相关信息:

I checked and someone said it's a proxy issue. But I am not using any proxy server. Here are other relevant information:

pensu@pensu-virtual-machine:~$ sudo docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef

这是我的/ etc / default / docker:

Here is my /etc/default/docker:

pensu@pensu-virtual-machine:~$ cat /etc/default/docker 
# Docker Upstart and SysVinit configuration file

# Customize location of Docker binary (especially for development testing).
#DOCKER="/usr/local/bin/docker"

# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"

# If you need Docker to use an HTTP proxy, it can also be specified here.
#export http_proxy="http://127.0.0.1:3128/"

# This is also a handy place to tweak where Docker's temporary files go.
#export TMPDIR="/mnt/bigdrive/docker-tmp"

关于我在做什么错?

更新:
这是不同的东西。我正在家里尝试所有这些。今天早上我来办公室,登录并确认,我能够提取图像!

不知道是什么原因,但是看来我将需要上班来拉取Docker映像!

推荐答案

只需停止并重新启动Docker主机:

Just stop and restart your docker host:

boot2docker stop
boot2docker start

信用至: https:/ /forums.docker.com/t/pulling-docker-images-io-timeout/740/6

这篇关于无法从存储库下载Docker映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆