podman ps -a --filter "status=exited" does not work #5050
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am unable to filter for Stopped or exited container. I can filter for "status=running" but i am unable to use "status=exited". The bash Script is used on the host container to start/stop root-less container on system startup or shutdown.
So shutdown is not an issue, i perform:
podman ps --filter "status=running" --format "{{.ID}} {{.Image}}" | while read CONT_ID CONT_IMG do echo "shutdown podmans ${CONT_ID} ${CONT_IMG} " podman stop ${CONT_ID} done
But on system-startup i have to do use a workaround like this:
podman ps -a --format "{{.ID}} {{.Image}} {{.Status}} " | grep kivi | grep Exited | while read CONT_ID CONT_IMG CONT_STATUS do echo "starting podmans ${CONT_ID} ${CONT_IMG} " podman start ${CONT_ID} done
Steps to reproduce the issue:
Describe the results you received:
I receive no result when filtering for exited container
Describe the results you expected:
I would like to run this:
podman ps --filter "status=exited" --format "{{.ID}} {{.Image}} {{.Status}} " | grep kivi | grep Exited | while read CONT_ID CONT_IMG CONT_STATUS
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
It's a Fedora Box.
The text was updated successfully, but these errors were encountered: