0x00 现象
今晚在三毛中安装docker版的v2节点,在用docker-compose启动过程中,报了read time out 的错误,如下:
[root@ruvds-4ytfy ws-tls]# dc up -d
Creating network "ws-tls_default" with the default driver
Pulling v2ray-ws-tls (v2cc/poseidon:)...
latest: Pulling from v2cc/poseidon
ba3557a56b15: Pull complete
d2371de70a8e: Pull complete
e93b600e94e9: Pull complete
Digest: sha256:627405b203b97a91d285dee998dbc8e4503b2dbe7e6fc7d1a788c81e2782f986
Status: Downloaded newer image for v2cc/poseidon:latest
Creating v2ray-ws-tls ...
ERROR: for v2ray-ws-tls UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for v2ray-ws-tls 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).
0x01 解决方法
在docker-compose.yml的文件夹中,新建一个.env文件,新建一行:COMPOSE_HTTP_TIMEOUT=1000
,然后wq。
接着docker down
,再docker up -d
。