在docker中安装 zendesk/maxwell 失败,解决方法
文章目录
- 1、拉取镜像失败
- 2、一键设置镜像加速:修改文件 /etc/docker/daemon.json(如果不存在则创建)
- 3、保存好之后 执行以下两条命令
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/