Docker compose “The system cannot find the file specified” error

Issue

When running “docker-compose up –build” I experienced the following error:

Traceback (most recent call last):
File "", line 3, in
File "compose\cli\main.py", line 65, in main
File "compose\cli\main.py", line 117, in perform_command
File "compose\cli\main.py", line 849, in up
File "compose\project.py", line 372, in up
File "compose\project.py", line 539, in warn_for_swarm_mode
File "site-packages\docker\api\daemon.py", line 33, in info

...

File "site-packages\docker\transport\npipesocket.py", line 49, in connect
pywintypes.error: (2, 'WaitNamedPipe', 'The system cannot find the file specified.')
docker-compose returned -1


Resolution


This is very likely to be caused by a environment config setting. The easiest and first action to do here is to simply reinstall Docker Toolbox

Leave a Reply