`docker-compose up`超时使用UnixHTTPConnectionPool

问题描述 投票:2回答:1

在我们的Jenkins代理中,我们运行了几个(大约20个)测试,其设置涉及为“大量”服务/容器(大约14个)运行docker-compose up

有时,我会收到以下错误:

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

一直无法重现这一点。我还在试图弄清楚是否与我们的代理商资源充分利用存在关联。

docker -v1.10.1docker-compose -v1.13.1

关于这可能与什么有关的任何想法?

go docker docker-compose
1个回答
0
投票

重启docker服务:

sudo systemctl restart docker

并设置DOCKER_CLIENT_TIMEOUTCOMPOSE_HTTP_TIMEOUT环境变量:

export DOCKER_CLIENT_TIMEOUT=120
export COMPOSE_HTTP_TIMEOUT=120

现在是两个解决方法。但是这个问题仍然在docker compose github中打开:

https://github.com/docker/compose/issues/3927

https://github.com/docker/compose/issues/4486

https://github.com/docker/compose/issues/3834

© www.soinside.com 2019 - 2024. All rights reserved.