# DockerException: Error while fetching server API version

**URL:** <https://forum.confluent.io/t/dockerexception-error-while-fetching-server-api-version/5693>\
**Category:** Containers\
**Created:** [4 August 2022 11:05 UTC](https://forum.confluent.io/t/dockerexception-error-while-fetching-server-api-version/5693 "2022-08-04T11:05:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SquareHat](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@SquareHat](https://forum.confluent.io/u/SquareHat)\
**Post date:** [4 August 2022 11:05 UTC](https://forum.confluent.io/t/dockerexception-error-while-fetching-server-api-version/5693/1 "2022-08-04T11:05:56Z")

</div>

Hi, I am following the getting started example using docker. On windows (10 x64), I created a folder in ‘Documents’ and added the docker-compose.yml file.

When I run docker-compose up -d (as an administrator), I get an error:

C:\Users\stephen.smith\Documents\Docker Images\Kafka\>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’, ‘The system cannot find the file specified.’)

During the handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “docker-compose”, line 3, in   
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’, ‘The system cannot find the file specified.’)  
[23996] Failed to execute script docker-compose

Unfortunately, I know as much about docker as I do about brain surgery. Is anyone able to point me in the right direction?

Thanks, Stephen

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [4 August 2022 14:00 UTC](https://forum.confluent.io/t/dockerexception-error-while-fetching-server-api-version/5693/2 "2022-08-04T14:00:51Z")

</div>

hey,

did you try the following:

> **[Docker-compose fails on Windows with "Error while fetching server API...](https://www.koskila.net/docker-compose-fails-on-windows-with-error-while-fetching-server-api-version-2-createfile-the-system-cannot-find-the-file-specified/)**
>
> This post was most recently updated on June 23rd, 2022. Once again, I come to you with a surprisingly opaque problem and offer to share my bemusingly simple solution. That should be a dedicated series on my blog – although on second thought, perhaps...

best,  
michael
