`docker-compose up` times out with UnixHTTPConnectionPool

后端 未结 2 567
别那么骄傲
别那么骄傲 2020-12-31 01:37

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

相关标签:
2条回答
  • 2020-12-31 01:54
    docker-compose down
    

    Running docker-compose down and then running docker-compose up --build may work. I am working on vscode and when I encountered a similar problem while building docker, this solution worked for me.

    Before performing above mentioned command its better you refer to what is the purpose of docker-compose down

    0 讨论(0)
  • 2020-12-31 02:18

    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

    0 讨论(0)
提交回复
热议问题