This repository was archived by the owner on Feb 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
This repository was archived by the owner on Feb 10, 2021. It is now read-only.
python3-podman: can't utilize rootless podman #16
Copy link
Copy link
Open
Description
Is this a BUG REPORT or FEATURE REQUEST?:
[//]: # kind bug
Description
I really like the python interface you have built. Unfortunately it's not possible to be used with rootless podman due to the varlink limitation. Is there a way to solve it? (have two sockets maybe?)
srw-------. 1 root root 0 Nov 1 14:45 io.podman
srw-------. 1 root root 0 Nov 1 14:45 podman/io.podman
$ id
uid=1000(tt) gid=1000(tt)
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
$ ipython3
Python 3.7.1 (default, Oct 23 2018, 18:19:07)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import podman
In [2]: with podman.Client() as client:
...: list(map(print, client.images.list()))
...:
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
...
/usr/lib/python3.7/site-packages/varlink/client.py in open_unix()
459 s = socket.socket(socket.AF_UNIX)
460 s.setblocking(True)
--> 461 s.connect(address)
462 return s
463
PermissionError: [Errno 13] Permission denied
$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/this-is-my-image latest d49960b9dbcd 29 minutes ago 83.2MB
<none> <none> d3b925049e8d 29 minutes ago 83.2MB
localhost/this-is-my-image-20181701-161756 latest 2a566e4de41f 29 minutes ago 83.2MB
docker.io/library/python 3-alpine 408808fb1a9e 7 days ago 82MB
registry.fedoraproject.org/fedora 29 a5cc8ccd230a 2 weeks ago 306MB
ZakCheb, twmr, jonathanunderwood, danmichaelo and dAnjou
Metadata
Metadata
Assignees
Labels
No labels