2017-02-04 3 views
0

Я пытаюсь создать изображение докера в мини-кубе на mac для тестирования, но когда я запустил обновление apt-get, я получаю кучу неудачных попыток получить сообщения.Docker apt-get не работает внутри minikube

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 start --vm-driver=xhyve

ответ

0

Оказывается, это был водитель xhyve. Когда я переключился на использование виртуального бокса, все получилось отлично.

0

Чтобы избежать повторного построения Docker изображения можно передавать изображения, построенный на локальном компьютере в minikube VM с:

docker save <image> | minikube ssh docker load 

От: https://twitter.com/markoluksa/status/828996606477422592

Смежные вопросы