我正在尝试在我的笔记本电脑上创建一个集群设置。我在笔记本电脑上运行 swarm 守护进程,并运行 2 个 Ubuntu 14.04 VM 作为 docker 节点。在其中一个节点上,我可以运行 swarm,并且可以连接到 swarm 守护程序。我可以列出带有 docker info 的节点并在其上生成一个容器。但是当我尝试在另一个 VM 节点上拉取 swarm 映像时,我收到以下错误:
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
我查了一下,有人说这是代理问题。但我没有使用任何代理服务器。以下是其他相关信息:
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:
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 图像!