2017-05-19 13 views
3

私のドッカー画像を私の家に建てようとすると、奇妙な問題が発見されましたが、それはブラウザに関連しているかわかりませんまたは単にネットワークの問題です。ドッカーがフェッチできませんでした。http://deb.debian.org/debian/dists/jessie/InRelease

これは私が得たものです。 Dockerfileでこのコマンドを実行しようとしました。

RUN apt-get update -qq && \ 
    apt-get install -y build-essential \ 
     libpq-dev \ 
     postgresql-client 

少し待ってから、プロセス出力がこのようになります。

W: Failed to fetch http://deb.debian.org/debian/dists/jessie/InRelease 

W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/InRelease 

W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease 

W: Failed to fetch http://deb.debian.org/debian/dists/jessie/Release.gpg Temporary failure resolving 'deb.debian.org' 

W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Temporary failure resolving 'security.debian.org' 

W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/Release.gpg Temporary failure resolving 'deb.debian.org' 

W: Some index files failed to download. They have been ignored, or old ones used instead. 

私のオフィスネットワークでこれを試してみると、これは起こりません。そして、もし私が携帯電話のデータネットワークにテザリングしようとすると、これも起こりません。

Iブラウザでhttp://deb.debian.org/debian/dists/jessie/InReleaseを開く試み、それが私はいくつかのネットワークを介してTorのブラウザを使用して試み404を示し、それはまた、ドッカー画像がruby:2.3.1に基づいて404

を示しています。

UPDATE

私は自分の家のプロバイダ203.142.82.222が提供するDNSを使用しようとしました。

sudo docker run --dns 203.142.82.222 busybox nslookup google.com 

これは

Server: 203.142.82.222 
Address 1: 203.142.82.222 dns-cache1.biz.net.id 

Name:  google.com 
Address 1: 2404:6800:4003:808::200e sin10s07-in-x0e.1e100.net 
Address 2: 117.102.117.245 
Address 3: 117.102.117.251 
Address 4: 117.102.117.212 

を解決します。しかし、私は/etc/default/dockerファイルに変更し、これを追加しました。

DOCKER_OPTS="--dns 203.142.82.222 --dns 203.142.84.222" 

私はドッカsudo service docker restartを再起動した後、私は再び試みたが、それはまだ働いていません。

sudo service docker restart 
sudo docker run busybox nslookup google.com 
Server: 8.8.8.8 
Address 1: 8.8.8.8 

nslookup: can't resolve 'google.com' 
+0

http://stackoverflow.com/q/24991136/6521116 –

+0

@ KrisRoofeは本当にありがとう!私はそれを試しましたが、まだ動作していません。質問が更新されました。 –

答えて

0

は、/ etc/default /ドッキングウィンドウのファイルは、唯一の "成り上がり" と "はsysvinit" を使用しているシステムで、ないにsystemdを使ってシステム上で使用されています。

これは、ファイルの先頭に記載されて: https://github.com/docker/docker/blob/44fe8cbbd174b5d85d4a063ed270f6b9d2279b70/contrib/init/sysvinit-debian/docker.default#L1

だから、ある/ etc/default /ドッキングウィンドウを使用しないでください。それはupstartによってのみ使用されています。これは16.04以降Ubuntuでは使用されていません。ここで説明されて

使用/etc/docker/daemon.json、:そこhttps://docs.docker.com/engine/reference/commandline/dockerd/#/linux-configuration-file

があなたのDNS設定でき

関連する問題