toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

DockerException

Open slowbrew opened this issue 4 years ago • 3 comments

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose\cli\main.py", line 80, in main
  File "compose\cli\main.py", line 189, 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.')
[16500] Failed to execute script docker-compose

slowbrew avatar Mar 09 '21 11:03 slowbrew

All good up to line 84 of the quickstart -- then bin/up fails

slowbrew avatar Mar 09 '21 11:03 slowbrew

How very strange. Could you run bin/doctor and paste the output here? Thanks!

JuneKelly avatar Mar 16 '21 09:03 JuneKelly

@slowbrew Are you using overleaf with WSL2 and the Windows version of Docker? I had the same issue because after installing Docker WSL put a wrong nameserver into /etc/resolv.conf. Replace it with the namesever of your host system and disable regenerating the file according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config#network-settings

tinnuadan avatar Feb 07 '22 13:02 tinnuadan