“docker-compose up”与 UnixHTTPConnectionPool 超时
执行 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-compose up 的成功执行,请考虑实施以下解决方法:
export DOCKER_CLIENT_TIMEOUT=120 export COMPOSE_HTTP_TIMEOUT=120
注意这些解决方法并不能永久解决问题。如需进一步了解,请参阅相关主题GitHub:
以上是为什么 UnixHTTPConnectionPool 的'docker-compose up”超时?的详细内容。更多信息请关注PHP中文网其他相关文章!