RuntimeError:使用 docker 关闭连接后无法重用套接字

use*_*r12 5 sockets go docker ethereum solidity

我正在按照本教程在 Windows 10 上使用 Docker 运行以太坊爬虫

执行后

$ MYSQL_DATA_PATH="$HOME/indexer-data/mysql" GETH_DATA_PATH="$HOME/indexer-data/geth"docker-compose up 
Run Code Online (Sandbox Code Playgroud)

在这一行中我收到错误:

409 Client Error: Conflict for url: http+docker://localnpipe/v1.25/containers/ee2b46142bae704d4963853e22a77ba896a8f841120ecf5ac97befca91847672/attach?logs=0&stdout=1&stderr=1&stream=1
During handling of the above exception, another exception occurred:

Traceback (most recent call last):   File "threading.py", line 916, in
_bootstrap_inner   File "threading.py", line 864, in run   File "compose\cli\log_printer.py", line 233, in watch_events   File
"compose\container.py", line 215, in attach_log_stream   File
"compose\container.py", line 307, in attach   File
"site-packages\docker\utils\decorators.py", line 19, in wrapped   File
"site-packages\docker\api\container.py", line 61, in attach   File
"site-packages\docker\api\client.py", line 400, in _read_from_socket  
File "site-packages\docker\api\client.py", line 311, in
_get_raw_response_socket   File "site-packages\docker\api\client.py", line 263, in _raise_for_status   File
"site-packages\docker\errors.py", line 19, in
create_api_error_from_http_exception   File
"site-packages\requests\models.py", line 880, in json   File
"site-packages\requests\models.py", line 828, in content   File
"site-packages\requests\models.py", line 750, in generate   File
"site-packages\urllib3\response.py", line 496, in stream   File
"site-packages\urllib3\response.py", line 444, in read   File
"http\client.py", line 449, in read   File "http\client.py", line 493,
in readinto   File "site-packages\docker\transport\npipesocket.py",
line 209, in readinto   File
"site-packages\docker\transport\npipesocket.py", line 20, in wrapped  
RuntimeError: Can not reuse socket after connection was closed.
Run Code Online (Sandbox Code Playgroud)
git config --global user.name "usrname"
git config --global user.password "paswd"
git clone https://github.com/usrame/eth-indexer.git
cd eth-indexer
touch .env
echo "MYSQL_DATA_PATH=~/indexer-data/mysql" > .env
echo "GETH_DATA_PATH=~/indexer-data/geth" > .env
git add -f .env
docker-compose build
mkdir -p ~/indexer-data/mysql ~/indexer-data/geth
# Create database sechema
MYSQL_DATA_PATH="$HOME/indexer-data/mysql" docker-compose up idx-database idx-migration
MYSQL_DATA_PATH="$HOME/indexer-data/mysql" GETH_DATA_PATH="$HOME/indexer-data/geth" docker-compose up
Run Code Online (Sandbox Code Playgroud)