本网站上发布了类似的问题,但我的问题与OSX Docker客户端(版本1.11.1-beta13.1(版本:8193)e9f58bbe60f0debccc097b7d27cad200556ec6f5)有关。具体而言。
从apt-get update
容器运行debian:jessie
时,我获得以下输出:
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上修复此问题?
答案 0 :(得分:1)
当我们使用虚拟机时,我们依赖它。某些功能可能效果不佳。因此,Docker团队努力消除Darwin系统(Mac OSX)中的这些待定虚拟机。
Beta版 - > https://blog.docker.com/2016/03/docker-for-mac-windows-beta/
但是要尝试解决您的问题,请尝试以下命令:
docker-machine restart default
docker-machine env default
eval "$(docker-machine env default)"