Skip to content

podman inspect on stopped container: inconsistent status #3326

@edsantiago

Description

@edsantiago

At some recent point, podman inspect started reporting 'stopped' for nonroot and 'exited' for root:

$ podman run -d --name foo alpine sleep 60;podman stop foo;podman inspect --format '{{.State.Status}}' foo
003cdf7dc49ebaff3261c05ed1cc928e26383f5b065b5f835b30a1e909aaffbd
003cdf7dc49ebaff3261c05ed1cc928e26383f5b065b5f835b30a1e909aaffbd
stopped
# podman run -d --name foo alpine sleep 60;podman stop foo;podman inspect --format '{{.State.Status}}' foo
2a5a082ef5dee2babb0ef4597984f640dd5e35194788c21f025399ca792e9991
2a5a082ef5dee2babb0ef4597984f640dd5e35194788c21f025399ca792e9991
exited

Caught by BATS tests (which expect, and have long expected, 'exited')

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.rootless

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions