当我尝试构建 docker 映像时,出现以下错误。
我尝试构建 docker 映像,并尝试使用以下命令重新启动 docker。 systemctl 重新启动 docker
https://registry-1.docker.io/v2/":拨打tcp:在[::1]:53上查找registry-1.docker.io:读取udp [::1]:38297-> [::1]:53:读取:连接被拒绝
sudo systemctl 重新启动 docker.service sudo systemctl restart docker.socket
这两个命令对我有用