title: Failed to execute script docker-compose YML file in Windows 10
body: <p>I'm using windows 10 and docker toolbox and as I try <code>docker compose up --build</code> option, I get the following errors:</p>
  <p><code>pywintypes.error: (2, 'CreateFile', 'The system cannot find the file specified.')</code></p>
  <p><code>docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.') [8628] Failed to execute script docker-compose</code></p>
  <p>The full extract is as follows:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;docker\api\client.py&quot;, line 214, in _retrieve_server_version
    File &quot;docker\api\daemon.py&quot;, line 181, in version
    File &quot;docker\utils\decorators.py&quot;, line 46, in inner
    File &quot;docker\api\client.py&quot;, line 237, in _get
    File &quot;requests\sessions.py&quot;, line 543, in get
    File &quot;requests\sessions.py&quot;, line 530, in request
    File &quot;requests\sessions.py&quot;, line 643, in send
    File &quot;requests\adapters.py&quot;, line 439, in send
    File &quot;urllib3\connectionpool.py&quot;, line 670, in urlopen
    File &quot;urllib3\connectionpool.py&quot;, line 392, in _make_request
    File &quot;http\client.py&quot;, line 1255, in request
    File &quot;http\client.py&quot;, line 1301, in _send_request
    File &quot;http\client.py&quot;, line 1250, in endheaders
    File &quot;http\client.py&quot;, line 1010, in _send_output
    File &quot;http\client.py&quot;, line 950, in send
    File &quot;docker\transport\npipeconn.py&quot;, line 32, in connect
    File &quot;docker\transport\npipesocket.py&quot;, line 23, in wrapped
    File &quot;docker\transport\npipesocket.py&quot;, line 72, in connect
    File &quot;docker\transport\npipesocket.py&quot;, line 52, 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 &quot;docker-compose&quot;, line 3, in &lt;module&gt;
    File &quot;compose\cli\main.py&quot;, line 80, in main
    File &quot;compose\cli\main.py&quot;, line 189, in perform_command
    File &quot;compose\cli\command.py&quot;, line 60, in project_from_options
    File &quot;compose\cli\command.py&quot;, line 152, in get_project
    File &quot;compose\cli\docker_client.py&quot;, line 41, in get_client
    File &quot;compose\cli\docker_client.py&quot;, line 170, in docker_client
    File &quot;docker\api\client.py&quot;, line 197, in __init__
    File &quot;docker\api\client.py&quot;, line 221, in _retrieve_server_version
  docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'The system cannot find the file specified.')
  [8628] Failed to execute script docker-compose
  </code></pre>
  <p>Docker Compose YML File is below:</p>
  <pre><code>services:
    frontend:
      build: frontend
      depends_on:
        - api
      tty: true
      volumes:
        - ./frontend/public:/frontend/public:cached,ro
        - ./frontend/src:/frontend/src:cached,ro
      ports:
        - &quot;3000:3000&quot;
  
    api:
      build: backend
      depends_on:
        - database
      tty: true
      volumes:
        - ./backend/bin:/backend/bin:cached,ro
        - ./backend/src:/backend/src:cached,ro
      ports:
        - &quot;3001:3001&quot;
      environment:
        DATABASE_USER: &quot;root&quot;
        DATABASE_PASSWORD: &quot;1234&quot;
  
    database:
      image: mongo:4.4
      ports:
        - &quot;27017:27017&quot;
      environment:
        MONGO_INITDB_ROOT_USERNAME: &quot;root&quot;
        MONGO_INITDB_ROOT_PASSWORD: &quot;1234&quot;
  </code></pre>
  <p>I am not sure what causes this problem, as I am new to docker. Please give your suggestions, Thanks.</p>