目录

[TOC]


报错

ERROR: for xxx  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=70)
ERROR: 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).

原因

容器太多,机器性能不足,无法在60S内运行起所有容器

解决方法

终端直接输入如下命令并回车

export DOCKER_CLIENT_TIMEOUT=500
export COMPOSE_HTTP_TIMEOUT=500
但这样只能暂时解决问题

需要这样vim /etc/profile
在最后粘贴:

export DOCKER_CLIENT_TIMEOUT=500
export COMPOSE_HTTP_TIMEOUT=500

保存退出
即可永久解决此问题

Last modification:May 22, 2023
V50%看看实力