0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

docker-compose upコマンドを実行すると指定されたファイルが見つかりません。とエラー表示がでる。

Last updated at Posted at 2022-02-15

n予備校プログラミングコースの第二章LinuxというOSにて。

docker-compose up -d を実行すると、指定されたファイルが見つかりません。というエラーが出ました。
エラーの内容 


Traceback (most recent call last): File 
"docker\api\client.py", line 214, in 
_retrieve_server_version File "docker\api\daemon.py", line 181, in version 
File "docker\utils\decorators.py", line 46, in 
inner File "docker\api\client.py", line 237, 
in _get File "requests\sessions.py", line 543, in get File "requests\sessions.py", line 530, 
in request File "requests\sessions.py", line 
643, in send File "requests\adapters.py", line 
439, in send File "urllib3\connectionpool.py", 
line 670, in urlopen File 
"urllib3\connectionpool.py", line 392, in 
_make_request File "http\client.py", line 
1255, in request File "http\client.py", line 
1301, in _send_request File "http\client.py", 
line 1250, in endheaders File 
"http\client.py", line 1010, in _send_output 
File "http\client.py", line 950, in send File 
"docker\transport\npipeconn.py", line 32, in 
connect File "docker\transport\npipesocket.py", line 23, in 
wrapped File "docker\transport\npipesocket.py", line 72, in 
connect File "docker\transport\npipesocket.py", line 52, in 
connect pywintypes.error: (2, 'CreateFile', '指定されたファイルが見つかりません。')  During 
handling of the above exception, another exception occurred:  Traceback (most recent 
call last): File "docker-compose", line 3, in <module> File "compose\cli\main.py", line 81, in main File "compose\cli\main.py", line 200, in perform_command File "compose\cli\command.py", line 60, in project_from_options File "compose\cli\command.py", line 152, in get_project File "compose\cli\docker_client.py", line 41, in get_client File "compose\cli\docker_client.py", line 170, in docker_client File "docker\api\client.py", line 197, in __init__ File "docker\api\client.py", line 221, in _retrieve_server_version docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', '指定されたファイルが見つかり ません。') [20948] Failed to execute script docker-compose PS C:\Users\81802\workspace\linux-study> docker version error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified. Client: Cloud integration: v1.0.22 Version: 20.10.12 API version: 1.41 Go version: go1.16.12 Git commit: e91ed57 Built: Mon Dec 13 11:44:07 2021 OS/Arch: windows/amd64 Context: default Experimental: true

解決策

docker desktopの再インストール

docker desktopの画面左下のクジラマークがオレンジから水色に変わると、エラーがでなくなりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?