You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead, when using client.containers.list(all=True), the Mounts values are erroneously returned as:
['/opt/resources', '/workspaces']
so, the other values are missing. Remember to remove the container by podman container stop exegol-default && podman container rm exegol-default to rerun the script above.
During my tests I noted that podman py
containers.list()
function returns a list of containers with partial/missingMounts
attribute values.In particular, the
Mounts
attribute values are correctly returned whencontainers.create()
function is used but not whencontainers.list()
is used.Here the Python code with the evidence (remember to change
source
values with some your existing dirs`):After
docker_create_function(**docker_args)
, theMounts
values are correctly returned as:Instead, when using
client.containers.list(all=True)
, theMounts
values are erroneously returned as:so, the other values are missing. Remember to remove the container by
podman container stop exegol-default && podman container rm exegol-default
to rerun the script above.Docker py works correctly on both the cases.
Some useful information:
container.list() gets container info by:
The content of this response is:
and the problem is that
Mounts
here has missing information.I don't understand why this GET request does not take all the info, indeed by using podman cli, I can easily get those missing information:
Also, by starting the API service by:
and running:
we get:
so, probably the issue is on REST API side.
The text was updated successfully, but these errors were encountered: