共计 521 个字符,预计需要花费 2 分钟才能阅读完成。
在进行 docker-compose up - d 时候,会拉取镜像,但是出现如下错误:
Error response from daemon: error parsing HTTP 408 response body: invalid character '<' looking for beginning of value: "<html><body><h1>408 Request Time-out</h1>\nYour browser didn't send a complete request in time.\n</body></html>\n"
大致意思就是网络可能有问题无法连接,尝试更换源
vim /etc/docker/daemon.json
添加如下内容
{
"registry-mirrors": [
"https://registry.hub.docker.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://registry.docker-cn.com"
]
}
保存后执行重启 Docker 命令
systemctl restart docker
验证是否成功
docker info

重新拉取镜像,正常拉取
正文完
发表至: 系统运维
2023-08-15