doushang2023 2017-02-14 07:50
浏览 4318

docker-compose up超时与UnixHTTPConnectionPool

In our Jenkins agents we are running about several (around 20) tests whose setup involves running docker-compose up for a "big" number of services/containers (around 14).

From time to time, I'll get the following error:

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

Haven't been able to reproduce this consistently. And I'm still trying to figure out whether or not there is a correlation with our agent's resources being at full use.

docker -v is 1.10.1 and docker-compose -v is 1.13.1.

Any ideas about what this may be related to?

  • 写回答

1条回答 默认 最新

  • dousi1906 2018-09-02 02:07
    关注

    Restarting docker service:

    sudo systemctl restart docker
    

    and setting DOCKER_CLIENT_TIMEOUT and COMPOSE_HTTP_TIMEOUT environment variables:

    export DOCKER_CLIENT_TIMEOUT=120
    export COMPOSE_HTTP_TIMEOUT=120
    

    are two workarounds for now. But the issues are still open in docker compose github:

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

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

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

    评论
    编辑
    预览

    报告相同问题?

    悬赏问题

    • ¥15 全志t113i启动qt应用程序提示internal error
    • ¥15 ensp可以看看嘛.
    • ¥80 51单片机C语言代码解决单片机为AT89C52是清翔单片机
    • ¥60 优博讯DT50高通安卓11系统刷完机自动进去fastboot模式
    • ¥15 minist数字识别
    • ¥15 在安装gym库的pygame时遇到问题,不知道如何解决
    • ¥20 uniapp中的webview 使用的是本地的vue页面,在模拟器上显示无法打开
    • ¥15 网上下载的3DMAX模型,不显示贴图怎么办
    • ¥15 关于#stm32#的问题:寻找一块开发版,作为智能化割草机的控制模块和树莓派主板相连,要求:最低可控制 3 个电机(两个驱动电机,1 个割草电机),其次可以与树莓派主板相连电机照片如下:
    • ¥15 潜在扩散模型的Unet特征提取
    手机看
    程序员都在用的中文IT技术交流社区

    程序员都在用的中文IT技术交流社区

    专业的中文 IT 技术社区,与千万技术人共成长

    专业的中文 IT 技术社区,与千万技术人共成长

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    客服 返回
    顶部