Closed skoech closed 1 month ago
Hi @skoech, thanks for reporting. This is an issue with the docker python package. You can solve it by adding a couple of lines to your basehttpadapter.py file. Should look like this:
import requests.adapters
class BaseHTTPAdapter(requests.adapters.HTTPAdapter):
def close(self):
super().close()
if hasattr(self, 'pools'):
self.pools.clear()
# new: add these 2 lines
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
return self.get_connection(request.url, proxies)
To find the file location you can do:
pip3 show docker
Location
path from that output and add docker/transport/basehttpadapter.py
to it. So for example for me this would be /usr/local/lib/python3.10/dist-packages/docker/transport/basehttpadapter.py
Please give that a try and let us know if it worked, thanks
Hi @mtruj013, thanks so much for your prompt and detailed response. I have tried this solution but I am still getting the same error.
I also noticed that the get_connection
method is deprecated and tried with get_connection_with_tls_context()
instead.
@skoech please try running docker desktop before running dotrun and let us know if it helps
Hi,
Please ensure if you have docker up and running, if that is the case then you should try using sudo
as it might be the case that docker installation in your system may require root permissions.
Please let me know if you need more information on any of this.
Thanks
I hope this has been resolved but if not please feel free to contact-us or re-open this issue. Thanks
Summary
When trying to run the website locally using
dotrun
, I run into this:Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied')) Dotrun needs Docker to work, please check if Docker is installed and running
I have Docker installed and running:
Steps to reproduce the behavior
Running
dotrun
on git repo.Expected behavior
Server starting, being able to access website locally on http://127.0.0.1:8001/.
Browser/device details
Reported from
GitHub