[英]minikube docker: Error response from daemon: connection refused when running sample docker container in MAC
I've installed docker
client and minikube
in MAC using this tutorial.我已经使用本教程在 MAC 中安装了
docker
客户端和minikube
。 Used commands are below:使用的命令如下:
brew install hyperkit
brew install minikube
# Install Docker CLI
brew install docker
brew install docker-compose
# Start minikube
minikube start
# Tell Docker CLI to talk to minikube's VM
eval $(minikube docker-env)
# Save IP to a hostname
echo "`minikube ip` docker.local" | sudo tee -a /etc/hosts > /dev/null
Though while running docker run hello-world
, below error pops:虽然在运行
docker run hello-world
时,会弹出以下错误:
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 192.168.64.1:53: read udp 192.168.64.3:49107->192.168.64.1:53: read: connection refused.
See 'docker run --help'
Is there a way to resolve it?有没有办法解决它? I tried to follow this , but it's probably not related to the issue.
我试图遵循这个,但它可能与问题无关。
I don't have a solution, but as a workaround you can use virtualbox or any other VM driver.我没有解决方案,但作为一种解决方法,您可以使用 virtualbox 或任何其他 VM 驱动程序。 I've used virtualbox:
我用过virtualbox:
minikube start --driver=virtualbox
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.