【发布时间】:2022-01-19 23:52:11
【问题描述】:
我已经使用this 教程在 MAC 中安装了docker 客户端和minikube。用到的命令如下:
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
虽然在运行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'
有办法解决吗?我尝试关注this,但可能与问题无关。
【问题讨论】: