简体   繁体   English

minikube docker:来自守护程序的错误响应:在 MAC 中运行示例 docker 容器时连接被拒绝

[英]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.

相关问题 尝试从 docker 容器在 Mac 主机上运行 X 客户端时连接被拒绝 - connection refused when trying to run X client on Mac host from a docker container 无法从安装 Minikube 的主机在 docker 容器中运行 kubectl “与服务器 127.0.0.1:32768 的连接被拒绝” - Can't run kubectl in docker container from a host machine installed Minikube “The connection to the server 127.0.0.1:32768 was refused” Docker容器连接被MacOS拒绝 - Docker Container Connection Refused MacOS docker 系统 df - 来自守护程序的错误响应 - docker system df - Error response from daemon nginx docker 容器上的连接被拒绝 - Connection refused on nginx docker container Docker运行失败,来自守护程序的错误响应 - Docker run failed with Error response from daemon docker:来自守护程序的错误响应:安装被拒绝: - docker: Error response from daemon: Mounts denied: 在 Docker 中创建新容器时遇到问题。 来自守护程序的错误响应:冲突。 容器名称已被容器使用 - Trouble creating a new container in Docker. Error response from daemon: Conflict. The container name is already in use by container Docker 错误:来自守护进程的错误响应:挂载被拒绝:在 OS X 上 - Docker error: Error response from daemon: Mounts denied: on OS X 适用于Mac的Docker的Docker守护程序日志 - Docker daemon log for Docker for Mac
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM