Compose error “HTTP request took too long to complete“

参考地址
最近我注意到docker-compose中经常出现以下错误消息:

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).

增加COMPOSE_HTTP_TIMEOUT似乎只会延迟错误。这是一个已知的问题吗?或者有解决方法吗?
尝试增大COMPOSE_HTTP_TIMEOUT环境变量,结果不起作用。

# Increase timeout period to 120 seconds.
export COMPOSE_HTTP_TIMEOUT=120;
# Rebuild all containers using the new images.
docker-compose up -d;

# 或者使用docker-compose --verbose up -d可以查看到一些错误

我的解决办法:

sudo service docker restart
docker-compose up

可能是我inode比较高

df -ih			#  -i, --inodes   列出信息节点信息,而不是数据块使用情况
Filesystem     Inodes IUsed IFree IUse% Mounted on
udev             493K   390  492K    1% /dev
tmpfs            494K   537  494K    1% /run
/dev/xvda1       1.3M  1.2M   70K   95% /
tmpfs            494K     1  494K    1% /dev/shm
tmpfs            494K     3  494K    1% /run/lock
tmpfs            494K    16  494K    1% /sys/fs/cgroup
tmpfs            494K     4  494K    1% /run/user/1000

The front is a dead end, hope in the corner, the dream in the heart, the road at the foot

猜你喜欢

转载自blog.csdn.net/qq_50573146/article/details/126273363