podman: ps command to list container with volume filter does not work
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Use “ps” command to list container with volume filter does not work
Steps to reproduce the issue:
- Run a container with a mounted volume, for instance:
podman run -it -v $(pwd)/data:/data ubuntu bash
- Run command to list all containers with mounting point “/data”
podman podman ps -f volume=/data
Describe the results you received: No container returned
Describe the results you expected: It should return all containers mounting volume to “/data” as docker works
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
4.2.1
Output of podman info:
host:
arch: amd64
buildahVersion: 1.27.0
cgroupControllers:
- cpu
- io
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.1.4-2.fc36.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.1.4, commit: '
cpuUtilization:
idlePercent: 98.4
systemPercent: 1.01
userPercent: 0.58
cpus: 1
distribution:
distribution: fedora
variant: coreos
version: "36"
eventLogger: journald
hostname: localhost.localdomain
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 1000000
uidmap:
- container_id: 0
host_id: 501
size: 1
- container_id: 1
host_id: 100000
size: 1000000
kernel: 5.19.9-200.fc36.x86_64
linkmode: dynamic
logDriver: journald
memFree: 1649397760
memTotal: 2066890752
networkBackend: netavark
ociRuntime:
name: crun
package: crun-1.6-2.fc36.x86_64
path: /usr/bin/crun
version: |-
crun version 1.6
commit: 18cf2efbb8feb2b2f20e316520e0fd0b6c41ef4d
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
os: linux
remoteSocket:
exists: true
path: /run/user/501/podman/podman.sock
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: true
serviceIsRemote: true
slirp4netns:
executable: /usr/bin/slirp4netns
package: slirp4netns-1.2.0-0.2.beta.0.fc36.x86_64
version: |-
slirp4netns version 1.2.0-beta.0
commit: 477db14a24ff1a3de3a705e51ca2c4c1fe3dda64
libslirp: 4.6.1
SLIRP_CONFIG_VERSION_MAX: 3
libseccomp: 2.5.3
swapFree: 0
swapTotal: 0
uptime: 0h 9m 1.00s
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
volume:
- local
registries:
search:
- docker.io
store:
configFile: /var/home/core/.config/containers/storage.conf
containerStore:
number: 0
paused: 0
running: 0
stopped: 0
graphDriverName: overlay
graphOptions: {}
graphRoot: /var/home/core/.local/share/containers/storage
graphRootAllocated: 106825756672
graphRootUsed: 2302984192
graphStatus:
Backing Filesystem: xfs
Native Overlay Diff: "true"
Supports d_type: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 2
runRoot: /run/user/501/containers
volumePath: /var/home/core/.local/share/containers/storage/volumes
version:
APIVersion: 4.2.0
Built: 1660228937
BuiltTime: Thu Aug 11 22:42:17 2022
GitCommit: ""
GoVersion: go1.18.4
Os: linux
OsArch: linux/amd64
Version: 4.2.0
Package info (e.g. output of rpm -q podman or apt list podman or brew info podman):
podman version 4.2.1
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (12 by maintainers)
Commits related to this issue
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. [NO NEW TESTS NEEDED] Closes #16019 Signed_By: Samir Akarioh <samir.akarioh@cano... — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. [NO NEW TESTS NEEDED] Closes #16019 Signed-off-by: SamirPS <samir.akarioh@canon... — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. [NO NEW TESTS NEEDED] Closes #16019 Signed-off-by: SamirPS <samir.akarioh@canon... — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. [NO NEW TESTS NEEDED] Closes #16019 Signed-off-by: SamirPS <akariohsamir@yahoo.... — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. [NO NEW TESTS NEEDED] Closes #16019 Signed-off-by: SamirPS <akariohsamir@yahoo.... — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. [NO NEW TESTS NEEDED] Closes #16019 Signed-off-by: SamirPS <akariohsamir@yahoo.... — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. Closes #16019 Signed-off-by: SamirPS <akariohsamir@yahoo.com> — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. Closes #16019 Signed-off-by: SamirPS <akariohsamir@yahoo.com> — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. Closes #16019 Signed-off-by: SamirPS <akariohsamir@yahoo.com> — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. Closes #16019 Signed-off-by: SamirPS <akariohsamir@yahoo.com> — committed to SamirPS/podman by SamirPS 2 years ago
- Fix: List container with volume filter Modify the condition in line 149 in order to list container by mounting point. Closes #16019 Signed-off-by: SamirPS <akariohsamir@yahoo.com> — committed to SamirPS/podman by SamirPS 2 years ago
@jesselang Thanks, I assigned it to you. Feel free to ping me if you have any questions.