Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

Docker Compose failing with file not found error pywintypes.error: (2, 'CreateFile', 'The system cannot find the file specified.') on windows

I am trying to run below command on windows command prompt. It is failing with file not found error.

C:UsersAMRANEcp-all-in-onecp-all-in-one>docker-compose up -d
Traceback (most recent call last):
  File "site-packagesdockerapiclient.py", line 205, in _retrieve_server_version
  File "site-packagesdockerapidaemon.py", line 181, in version
  File "site-packagesdockerutilsdecorators.py", line 46, in inner
  File "site-packagesdockerapiclient.py", line 228, in _get
  File "site-packages
equestssessions.py", line 543, in get
  File "site-packages
equestssessions.py", line 530, in request
  File "site-packages
equestssessions.py", line 643, in send
  File "site-packages
equestsadapters.py", line 449, in send
  File "site-packagesurllib3connectionpool.py", line 677, in urlopen
  File "site-packagesurllib3connectionpool.py", line 392, in _make_request
  File "httpclient.py", line 1244, in request
  File "httpclient.py", line 1290, in _send_request
  File "httpclient.py", line 1239, in endheaders
  File "httpclient.py", line 1026, in _send_output
  File "httpclient.py", line 966, in send
  File "site-packagesdockerransport
pipeconn.py", line 32, in connect
  File "site-packagesdockerransport
pipesocket.py", line 23, in wrapped
  File "site-packagesdockerransport
pipesocket.py", line 72, in connect
  File "site-packagesdockerransport
pipesocket.py", 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 "composeclimain.py", line 67, in main
  File "composeclimain.py", line 123, in perform_command
  File "composeclicommand.py", line 69, in project_from_options
  File "composeclicommand.py", line 132, in get_project
  File "composeclidocker_client.py", line 43, in get_client
  File "composeclidocker_client.py", line 170, in docker_client
  File "site-packagesdockerapiclient.py", line 188, in __init__
  File "site-packagesdockerapiclient.py", line 213, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.')

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...