Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dedockify doesn't work with podman #5

Open
bruno-arruda-base opened this issue Jun 17, 2023 · 0 comments
Open

Dedockify doesn't work with podman #5

bruno-arruda-base opened this issue Jun 17, 2023 · 0 comments

Comments

@bruno-arruda-base
Copy link

bruno-arruda-base commented Jun 17, 2023

Hi, I used Dedockify in Docker without problems, but after I changed to podman, the code fails. I tried to run a rootful container with podman run -v /var/run/podman:/var/run/docker.sock --rm mrhavens/dedockify <my image>. This was the error:

Traceback (most recent call last):
  File "/app/dedockify.py", line 55, in <module>
    __main__ = MainObj()
  File "/app/dedockify.py", line 15, in __init__
    self._get_image(argv[-1])
  File "/app/dedockify.py", line 26, in _get_image
    images = self.cli.images()
  File "/usr/lib/python3.8/site-packages/docker/api/image.py", line 90, in images
    res = self._result(self._get(self._url("/images/json"), params=params),
  File "/usr/lib/python3.8/site-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/docker/api/client.py", line 230, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))

Details:

Client:       Podman Engine
Version:      4.3.1
API Version:  4.3.1
Go Version:   go1.17.13
Built:        Tue Nov 22 09:00:00 2022
OS/Arch:      linux/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant