gpt4 book ai didi

python - Docker Compose Up 给出 "The system cannot find the file specified."错误

转载 作者:IT老高 更新时间:2023-10-28 12:34:41 24 4
gpt4 key购买 nike

我最近在我的 Windows 10 机器上安装了 Docker Toolbox。

但是,每当我运行 docker-compose up 时,我都会收到以下错误消息:

Traceback (most recent call last):
File "<string>", line 3, in <module>
File "compose\cli\main.py", line 65, in main
File "compose\cli\main.py", line 117, in perform_command
File "compose\cli\main.py", line 849, in up
File "compose\project.py", line 372, in up
File "compose\project.py", line 539, in warn_for_swarm_mode
File "site-packages\docker\api\daemon.py", line 33, in info
File "site-packages\docker\utils\decorators.py", line 47, in inner
File "site-packages\docker\client.py", line 139, in _get
File "site-packages\requests\sessions.py", line 488, in get
File "site-packages\requests\sessions.py", line 475, in request
File "site-packages\requests\sessions.py", line 596, in send
File "site-packages\requests\adapters.py", line 423, in send
File "site-packages\requests\packages\urllib3\connectionpool.py", line 595, in urlopen
File "site-packages\requests\packages\urllib3\connectionpool.py", line 363, in _make_request
File "httplib.py", line 1057, in request
File "httplib.py", line 1097, in _send_request
File "httplib.py", line 1053, in endheaders
File "httplib.py", line 897, in _send_output
File "httplib.py", line 859, in send
File "site-packages\docker\transport\npipeconn.py", line 31, in connect
File "site-packages\docker\transport\npipesocket.py", line 22, in wrapped
File "site-packages\docker\transport\npipesocket.py", line 49, in connect
pywintypes.error: (2, 'WaitNamedPipe', 'The system cannot find the file specified.')
docker-compose returned -1

请注意,我的 usersystem C:\Python27 和 C:\Python27\Scripts em> 环境变量。我也用 Python 3 试过,还是不行。

最佳答案

我只是忘记启动“Docker for Windows”导致该错误。

关于python - Docker Compose Up 给出 "The system cannot find the file specified."错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42052270/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com