目 录CONTENT

文章目录

docker-compose 报:An HTTP request took too long to complete

码农街
2024-03-15 / 0 评论 / 0 点赞 / 89 阅读 / 1052 字 / 正在检测是否收录...

An HTTP request took too long to complete. Retry with --verbose to obtain debug information.

If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60)

解决办法如下:

1. docker-compose.yaml 进行拆分

2. 环境变量配置:

vim /etc/profile 

在文件最后添加如下代码

# 在文件最后添加如下代码
export COMPOSE_HTTP_TIMEOUT=500
export DOCKER_CLIENT_TIMEOUT=500

然后保存,保存之后使环境变量生效,执行以下命令

source /etc/profile 

over~

0

评论区