mirror of
https://github.com/projectatomic/atomic.git
synced 2026-02-06 12:45:57 +01:00
Change the status in "atomic containers list" to display systemd state instead of runc state. This way system containers match user containers. Another reason for the switch is that systemctl start/stop creates/destroys a runc container every time instead of using the same container, so systemd gives better indication of container status. Also expand the states to be: - running: container is running correctly - inactive: container is stopped/newly created and ready to run - failed: either systemd service or container process failed instead of just "exited" and "running" as before. Add tests and fix to test-image originally by Giuseppe. Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com> Closes: #619 Approved by: giuseppe