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
With additional -a parameter to both commands the image is deleted in both commands regardless to filter.
Describe the results you received
podman image prune ignores the filter
Describe the results you expected
podman image prune doesn't ignore filter.
I'm looking for solution, some tagged (or labeled) images not to be deleted, but other images yes.
podman info output
host:
arch: amd64buildahVersion: 1.38.0cgroupControllers:
- cpu
- memory
- pidscgroupManager: systemdcgroupVersion: v2conmon:
package: conmon-2.1.12-2.fc40.x86_64path: /usr/bin/conmonversion: 'conmon version 2.1.12, commit: 'cpuUtilization:
idlePercent: 95.34systemPercent: 1.82userPercent: 2.84cpus: 4databaseBackend: sqlitedistribution:
distribution: fedoravariant: serverversion: "40"eventLogger: journaldfreeLocks: 2046hostname: server-ksjidMappings:
gidmap:
- container_id: 0host_id: 1002size: 1
- container_id: 1host_id: 655360size: 65536uidmap:
- container_id: 0host_id: 1002size: 1
- container_id: 1host_id: 655360size: 65536kernel: 6.11.10-200.fc40.x86_64linkmode: dynamiclogDriver: journaldmemFree: 344170496memTotal: 8225832960networkBackend: netavarknetworkBackendInfo:
backend: netavarkdns:
package: aardvark-dns-1.13.1-1.fc40.x86_64path: /usr/libexec/podman/aardvark-dnsversion: aardvark-dns 1.13.1package: netavark-1.13.0-1.fc40.x86_64path: /usr/libexec/podman/netavarkversion: netavark 1.13.0ociRuntime:
name: crunpackage: crun-1.18.2-1.fc40.x86_64path: /usr/bin/crunversion: |- crun version 1.18.2 commit: 00ab38af875ddd0d1a8226addda52e1de18339b5 rundir: /run/user/1002/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJLos: linuxpasta:
executable: /usr/bin/pastapackage: passt-0^20241030.gee7d0b6-1.fc40.x86_64version: | pasta 0^20241030.gee7d0b6-1.fc40.x86_64-pasta Copyright Red Hat GNU General Public License, version 2 or later <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.remoteSocket:
exists: truepath: /run/user/1002/podman/podman.sockrootlessNetworkCmd: pastasecurity:
apparmorEnabled: falsecapabilities: 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_CHROOTrootless: trueseccompEnabled: trueseccompProfilePath: /usr/share/containers/seccomp.jsonselinuxEnabled: trueserviceIsRemote: falseslirp4netns:
executable: ""package: ""version: ""swapFree: 14102814720swapTotal: 16814956544uptime: 37h 27m 53.00s (Approximately 1.54 days)variant: ""plugins:
authorization: nulllog:
- k8s-file
- none
- passthrough
- journaldnetwork:
- bridge
- macvlan
- ipvlanvolume:
- localregistries:
search:
- registry.fedoraproject.org
- registry.access.redhat.com
- docker.iostore:
configFile: /home/runner/.config/containers/storage.confcontainerStore:
number: 2paused: 0running: 2stopped: 0graphDriverName: overlaygraphOptions: {}graphRoot: /home/runner/.local/share/containers/storagegraphRootAllocated: 239981297664graphRootUsed: 176675987456graphStatus:
Backing Filesystem: btrfsNative Overlay Diff: "true"Supports d_type: "true"Supports shifting: "false"Supports volatile: "true"Using metacopy: "false"imageCopyTmpDir: /var/tmpimageStore:
number: 31runRoot: /run/user/1002/containerstransientStore: falsevolumePath: /home/runner/.local/share/containers/storage/volumesversion:
APIVersion: 5.3.1Built: 1732147200BuiltTime: Thu Nov 21 01:00:00 2024GitCommit: ""GoVersion: go1.22.7Os: linuxOsArch: linux/amd64Version: 5.3.1
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
$ podman version
Client: Podman Engine
Version: 5.3.1
API Version: 5.3.1
Go Version: go1.22.7
Built: Thu Nov 21 01:00:00 2024
OS/Arch: linux/amd64
$ rpm -q podman
podman-5.3.1-1.fc40.x86_64
```
### Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered:
Issue Description
I found out, podman image prune does not react to filter.
Steps to reproduce the issue
$podman image inspect 87deb5e9fa81
commands for print images are correct.
$podman images --filter "label=NO"
$podman images --filter "label!=NO"
But command for prune doesn't do anything
With additional -a parameter to both commands the image is deleted in both commands regardless to filter.
Describe the results you received
podman image prune ignores the filter
Describe the results you expected
podman image prune doesn't ignore filter.
I'm looking for solution, some tagged (or labeled) images not to be deleted, but other images yes.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
$ podman version
$ rpm -q podman
The text was updated successfully, but these errors were encountered: