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
podman ps can't be formatted by Label, but only by Labels, which breaks the docker CLI compatibility
Steps to reproduce the issue:
Create a container labeled with container_name=test
Try to filter it following docker CLI:
# podman ps -a --filter label=container_name=test --format '{{.Label "container_name"}}'
template: output:1:2: executing "output" at <.Label>: can't evaluate field Label in type shared.PsContainerOutput
# podman ps -a --filter label=container_name=test --format {{.Label "container_name"}}
too many arguments, ps takes no arguments
Try to filter it via Labels instead:
# podman ps -a --filter label=container_name=test --format {{.Labels.container_name}}
test
Describe the results you received:
--format '{{.Label "container_name"}}' is not working for podman, but works for docker
Describe the results you expected:
--format '{{.Label "container_name"}}' should also work for podman
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Version: 0.10.2-dev
Go Version: go1.10.2
OS/Arch: linux/amd64
kind bug
Description
podman ps
can't be formatted by Label, but only by Labels, which breaks the docker CLI compatibilitySteps to reproduce the issue:
Create a container labeled with container_name=test
Try to filter it following docker CLI:
Describe the results you received:
--format '{{.Label "container_name"}}'
is not working for podman, but works for dockerDescribe the results you expected:
--format '{{.Label "container_name"}}'
should also work for podmanAdditional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: