https://registry-1.docker.io/v2/": 拨打 tcp: 在 [::1]:53 上查找registry-1.docker.io: 读取 udp [::1]:38297-> [::1]:53:读取:连接被拒绝

问题描述 投票:0回答:1

当我尝试构建 docker 映像时,出现以下错误。

我尝试构建 docker 映像,并尝试使用以下命令重新启动 docker。 systemctl 重新启动 docker

https://registry-1.docker.io/v2/":拨打tcp:在[::1]:53上查找registry-1.docker.io:读取udp [::1]:38297-> [::1]:53:读取:连接被拒绝

docker docker-registry docker-network
1个回答
0
投票

sudo systemctl 重新启动 docker.service sudo systemctl restart docker.socket

这两个命令对我有用

© www.soinside.com 2019 - 2024. All rights reserved.