自学内容网 自学内容网

在docker中安装 zendesk/maxwell 失败,解决方法

1、拉取镜像失败

[root@localhost docker]# docker pull zendesk/maxwell
Using default tag: latest
Error response from daemon: Get "https://registry-1.docker.io/v2/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2、一键设置镜像加速:修改文件 /etc/docker/daemon.json(如果不存在则创建)

{
  "registry-mirrors": ["https://zvpiwwx5.mirror.aliyuncs.com","https://docker.m.daocloud.io","https://docker.1panel.live","https://dislabaiot.xyz","https://dockerpull.com"]
}
"https://zvpiwwx5.mirror.aliyuncs.com",
"https://docker.m.daocloud.io",
"https://docker.1panel.live",
"https://dislabaiot.xyz",
"https://dockerpull.com"

3、保存好之后 执行以下两条命令

[root@localhost docker]# sudo systemctl daemon-reload
[root@localhost docker]# sudo systemctl restart docker
[root@localhost docker]# docker pull zendesk/maxwell
Using default tag: latest
latest: Pulling from zendesk/maxwell
1efc276f4ff9: Pull complete 
a2f2f93da482: Pull complete 
12cca292b13c: Pull complete 
69e15dccd787: Pull complete 
79219af6aa7c: Pull complete 
f39f1bdf1c84: Pull complete 
3261018f1785: Pull complete 
4f4fb700ef54: Pull complete 
be1353da9f00: Pull complete 
627d862c87f8: Pull complete 
Digest: sha256:68d51e27b6de2315ea710c0fe88972d4bd246ffb2519c82a49aa90a980d6cf64
Status: Downloaded newer image for zendesk/maxwell:latest
docker.io/zendesk/maxwell:latest

在这里插入图片描述
https://dockerpull.com/
https://dockerproxy.cn/


原文地址:https://blog.csdn.net/m0_65152767/article/details/142236328

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!