2016-06-01 10 views
0

このサイトにも同様の質問が掲載されていますが、私の質問はOSX Dockerクライアント(バージョン1.11.1-beta13.1(ビルド:8193)e9f58bbe60f0debccc097b7d27cad200556ec6f5)です。 debian:jessieコンテナからapt-get updateを実行している場合dockerコンテナ内でapt-get更新が失敗するのはなぜですか?

、私は次のような出力を得る:

Err http://httpredir.debian.org jessie InRelease 

Err http://httpredir.debian.org jessie-updates InRelease 

Err http://security.debian.org jessie/updates InRelease 

Err http://httpredir.debian.org jessie Release.gpg 
    Could not resolve 'httpredir.debian.org' 
Err http://security.debian.org jessie/updates Release.gpg 
    Could not resolve 'security.debian.org' 
Err http://httpredir.debian.org jessie-updates Release.gpg 
    Could not resolve 'httpredir.debian.org' 
Reading package lists... 
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/InRelease 

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

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

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/Release.gpg Could not resolve 'httpredir.debian.org' 

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/Release.gpg Could not resolve 'httpredir.debian.org' 

W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Could not resolve 'security.debian.org' 

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

私はOSX上で、この問題を解決することができますか?

答えて

1

仮想マシンを使用しているときは、その一部に依存します。また、一部の機能がうまく動作しない場合があります。そのため、DockerチームはDarwinシステム(Mac OSX)でこの保留中の仮想マシンを排除するために懸命に働いていました。

ベータ版 - >https://blog.docker.com/2016/03/docker-for-mac-windows-beta/

しかし、次のコマンドを試してみてください、あなたの問題を解決しようとする:

  1. docker-machine restart default
  2. docker-machine env default
  3. eval "$(docker-machine env default)"
関連する問題