podman
podman copied to clipboard
ps formatting ".Label" method not detected
Issue Description
There's a discrepancy between docker's and podman's ps formatting. I didn't find an issue that might be covering this one
Docker (Expected behaviour):
$ docker ps --format "table {{.Names}}\t{{.Label \"app\"}}"
NAMES app
nginx
postgres my-app
Podman:
$ podman ps --format "table {{.Names}}\t{{.Label \"app\"}}"
Error: template: ps:1:24: executing "ps" at <.Label>: Label is not a method but has arguments
NAMES
"app" is understandably my custom label
Issue Required Info:
$ podman version
Client: Podman Engine
Version: 6.1.2
API Version: 6.1.2
Go Version: go1.27.1-X:nodwarf5
Git Commit: 04f3aa430e6df81bea059978bc5bafbc846ba3e7
Built: Wed Sep 16 08:48:49 2026
OS/Arch: linux/amd64
Steps to reproduce the issue
Steps to reproduce the issue
- podman ps --format "table {{.Names}}\t{{.Label "app"}}"
Describe the results you received
Describe the results you received
Describe the results you expected
Error: template: ps:1:24: executing "ps" at <.Label>: Label is not a method but has arguments NAMES
Describe the results you expected
NAMES app
nginx
postgres my-app
podman info output
host:
arch: amd64
buildahVersion: 1.45.1
cdiSpecDirs:
- /etc/cdi
- /var/run/cdi
cgroupControllers:
- cpu
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-1:2.2.1-1
path: /usr/bin/conmon
version: 'conmon version 2.2.1, commit: c8cc2c4db27531bd4e084ce7857f73cd21ee639d'
cpuUtilization:
idlePercent: 90.39
systemPercent: 1.97
userPercent: 7.64
cpus: 12
databaseBackend: sqlite
distribution:
distribution: endeavouros
version: unknown
eventLogger: journald
freeLocks: 1991
hostname: proxpxd-pc
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
kernel: 6.18.49-2-lts
linkmode: dynamic
logDriver: journald
memAvailable: 3810988032
memFree: 348934144
memTotal: 16527540224
networkBackend: netavark
networkBackendInfo:
backend: netavark
defaultNetwork: podman
dns:
package: aardvark-dns-2.1.0-3
path: /usr/lib/podman/aardvark-dns
version: aardvark-dns 2.1.0
package: netavark-2.1.0-3
path: /usr/lib/podman/netavark
version: netavark 2.1.0
ociRuntime:
name: crun
package: crun-1.29.1-1
path: /usr/bin/crun
version: |-
crun version 1.29.1-dirty
commit: f0d911de5587342cfeb16473bf32ecdfeaf25957
rundir: /run/user/1000/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +JSON_C
os: linux
pasta:
executable: /usr/bin/pasta
package: passt-2026_07_28.f8df3f1-1
version: |
pasta 2026_07_28.f8df3f1
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: true
path: /run/user/1000/podman/podman.sock
rootlessNetworkCmd: pasta
rootlessPortForwarder: rootlessport
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: false
serviceIsRemote: false
swapFree: 0
swapTotal: 0
uptime: 8h 4m 52.00s (Approximately 0.33 days)
variant: ""
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries:
search:
- docker.io
store:
containerStore:
number: 12
paused: 0
running: 4
stopped: 8
graphDriverName: overlay
graphOptions:
overlay.mountopt: nodev
graphRoot: /home/proxpxd/.local/share/containers/storage
graphRootAllocated: 500806529024
graphRootUsed: 240867291136
graphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "true"
Supports d_type: "true"
Supports shifting: "false"
Supports volatile: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 19
runRoot: /run/user/1000/containers
transientStore: false
volumePath: /home/proxpxd/.local/share/containers/storage/volumes
version:
APIVersion: 6.1.2
Built: 1789541329
BuiltTime: Wed Sep 16 08:48:49 2026
GitCommit: 04f3aa430e6df81bea059978bc5bafbc846ba3e7
GoVersion: go1.27.1-X:nodwarf5
Os: linux
OsArch: linux/amd64
Version: 6.1.2
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
bare metal, Endeavour
Additional information
No response
/assign