Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos Docker在minikube内部失败_Macos_Docker_Debian_Apt_Minikube - Fatal编程技术网

Macos Docker在minikube内部失败

Macos Docker在minikube内部失败,macos,docker,debian,apt,minikube,Macos,Docker,Debian,Apt,Minikube,我试图在mac上的minikube内部构建一个docker映像以进行测试,但当我运行apt get update时,我收到了一堆无法获取消息的消息 Err http://repo.mysql.com jessie InRelease Err http://repo.mysql.com jessie Release.gpg Unable to connect to repo.mysql.com:http: Err http://httpredir.debian.org jessie InR

我试图在mac上的minikube内部构建一个docker映像以进行测试,但当我运行apt get update时,我收到了一堆无法获取消息的消息

Err http://repo.mysql.com jessie InRelease

Err http://repo.mysql.com jessie Release.gpg
  Unable to connect to repo.mysql.com:http:

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

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

Err http://httpredir.debian.org jessie Release.gpg
  Cannot initiate the connection to httpredir.debian.org:80 (2001:41c8:1000:21::21:35). - connect (101: Network is unreachable) [IP: 2001:41c8:1000:21::21:35 80]
Err http://httpredir.debian.org jessie-updates Release.gpg
  Cannot initiate the connection to httpredir.debian.org:80 (2001:41c8:1000:21::21:35). - connect (101: Network is unreachable) [IP: 2001:41c8:1000:21::21:35 80]
Err http://security.debian.org jessie/updates InRelease

Err http://security.debian.org jessie/updates Release.gpg
  Cannot initiate the connection to security.debian.org:80 (2610:148:1f10:3::73). - connect (101: Network is unreachable) [IP: 2610:148:1f10:3::73 80]
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://repo.mysql.com/apt/debian/dists/jessie/InRelease  

W: Failed to fetch http://repo.mysql.com/apt/debian/dists/jessie/Release.gpg  Unable to connect to repo.mysql.com:http:

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/Release.gpg  Cannot initiate the connection to httpredir.debian.org:80 (2001:41c8:1000:21::21:35). - connect (101: Network is unreachable) [IP: 2001:41c8:1000:21::21:35 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/Release.gpg  Cannot initiate the connection to httpredir.debian.org:80 (2001:41c8:1000:21::21:35). - connect (101: Network is unreachable) [IP: 2001:41c8:1000:21::21:35 80]

W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg  Cannot initiate the connection to security.debian.org:80 (2610:148:1f10:3::73). - connect (101: Network is unreachable) [IP: 2610:148:1f10:3::73 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.
但是,当我在主机上构建相同的映像时,效果很好。 我启动minikube时是否错过了阻止这些站点的网络设置


要启动minikube,我运行
minikube start--vm driver=xhyve

要避免重新构建docker映像,您可以使用以下方法将本地机器上构建的映像传输到minikube vm中:

docker save <image> | minikube ssh docker load
docker保存| minikube ssh docker加载

From:

原来是xhyve驱动程序。当我改用virtualbox时,一切都很顺利