$ docker ps -a

error during connect: This error may indicate that the docker daemon is not running.: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json?all=1: open //./pipe/docker_engine: The system cannot find the file specified.


docker-compose up
Traceback (most recent call last):
  File "site-packages\docker\api\", line 205, in _retrieve_server_version
  File "site-packages\docker\api\", line 181, in version
  File "site-packages\docker\utils\", line 46, in inner
  File "site-packages\docker\api\", line 228, in _get
  File "site-packages\requests\", line 543, in get
  File "site-packages\requests\", line 530, in request
  File "site-packages\requests\", line 643, in send
  File "site-packages\requests\", line 449, in send
  File "site-packages\urllib3\", line 677, in urlopen
  File "site-packages\urllib3\", line 392, in _make_request
  File "http\", line 1244, in request
  File "http\", line 1290, in _send_request
  File "http\", line 1239, in endheaders
  File "http\", line 1026, in _send_output
  File "http\", line 966, in send
  File "site-packages\docker\transport\", line 32, in connect
  File "site-packages\docker\transport\", line 23, in wrapped
  File "site-packages\docker\transport\", line 72, in connect
  File "site-packages\docker\transport\", line 59, in connect
pywintypes.error: (2, 'CreateFile', 'The system cannot find the file specified.')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose\cli\", line 67, in main
  File "compose\cli\", line 123, in perform_command
  File "compose\cli\", line 69, in project_from_options
  File "compose\cli\", line 132, in get_project
  File "compose\cli\", line 43, in get_client
  File "compose\cli\", line 170, in docker_client
  File "site-packages\docker\api\", line 188, in __init__
  File "site-packages\docker\api\", line 213, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.')
[372] Failed to execute script docker-compose



$ "C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon

このエラーは、突然のシャットダウンによりDockerのデーモンが生き残っているために起きています。 そのために上記のコマンドでデーモンを切り替えます。



Updated at: Sat Feb 27 2021

© 2020-presentTerms|Privacy