If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60)

ERROR: for decoder_workstation  Cannot start service decoder_workstation: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #1:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: driver rpc error: timed out: unknown

ERROR: for model_car  Cannot start service model_car: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #1:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: driver rpc error: timed out: unknown

ERROR: for model_optical_flow  Cannot start service model_optical_flow: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #1:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: driver rpc error: timed out: unknown

ERROR: for model_safety_helmet  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for similar_filter  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60) 

ERROR: for model_smoker_detection  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for model_yolo_person  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for safety_helmet  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for model_face_mask  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60 

ERROR: for smoker_detection  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for electronic_fence  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for model_similar_filter  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

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

解决,在/etc/profile.d/目录,新增docker.sh,写入变量:

$ cat docker.sh 

#set docker http enviroment

export COMPOSE_HTTP_TIMEOUT=500

export DOCKER_CLIENT_TIMEOUT=500

执行source /etc/profile或重启服务器。

结束。

posted @ 2022-12-02 16:38  巴州夜雨  阅读(524)  评论(0编辑  收藏  举报