2017-10-04 12 views
1

挨拶Ubuntuでrunnung dockerfileにはジャンゴ、

をインストールに失敗しました私はCentOSのVMとUbuntuのVMに私のドッキングウィンドウ環境を使用して、ドッキングウィンドウがhttps://docs.docker.com/compose/django/でクイックスタートの例を構成続きます。この例はCentOSでは動作しますが、Ubuntuでは動作しません。失敗はあなたが私にこれをトラブルシューティングを支援し、これはUbuntuのではなく、CentOSの中で起こる理由を理解できますか?エラーが

Step 6/7 : RUN pip install -r requirements.txt 
---> Running in 7ed9830cea5f 
Collecting Django (from -r requirements.txt (line 1)) 
    Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe12ff70470>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/django/ 
    Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe12ff70438>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/django/ 
    Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe12ff706a0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/django/ 
    Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe12f4fe5f8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/django/ 
    Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe12f4fea58>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/django/ 
    Could not find a version that satisfies the requirement Django (from -r requirements.txt (line 1)) (from versions:) 
No matching distribution found for Django (from -r requirements.txt (line 1)) 

ようです

RUN pip install -r requirements.txt 

に起こりますか

ありがとうございました...

答えて

0

あなたの探しているものを確認してください。それは実際にそれを見つけることができないエラーのように見えます。

Dockerドキュメントはメインサイトで古くなる傾向があります。

1

私の/etc/resolv.confが間違ったネームサーバを指していることが判明しました。私はまだそれがなぜ起こるのかを調査する必要があります。正しいDNSを手動で入力すると、ドッカーコンテナにはネットワークが存在します。