ラップトップで群れのセットアップを作成しようとしています。ラップトップで swarm デーモンを実行しており、docker ノードとして 2 つの Ubuntu 14.04 VM を実行しています。ノードの 1 つで swarm を実行でき、swarm デーモンに接続できます。Docker 情報を使用してノードを一覧表示し、その上にコンテナーを生成できます。しかし、別の 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 イメージを取得する必要があるようです。