Files
podman/libpod
Toshiki Sonoda 3619f0be95 Fix: Prevent OCI runtime directory remain
This bug was introduced in https://github.com/containers/podman/pull/8906.

When we use 'podman rm/restart/stop/kill etc...' command to
the container running with --rm, the OCI runtime directory
remains at /run/<runtime name> (root user) or
/run/user/<user id>/<runtime name> (rootless user).

This bug could cause other bugs.
For example, when we checkpoint the container running with
--rm (podman checkpoint --export) and restore it
(podman restore --import) with crun, error message
"Error: OCI runtime error: crun: container `<container id>`
already exists" is outputted.
This error is caused by an attempt to restore the container with
the same container ID as the remaining OCI runtime's container ID.

Therefore, I fix that the cleanupRuntime() function runs to
remove the OCI runtime directory,
even if the container has already been removed by --rm option.

Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
2022-06-24 09:29:24 +09:00
..
2022-03-22 13:04:35 +01:00
2022-06-14 16:29:42 +02:00
2022-01-18 12:47:07 +01:00
2017-11-01 11:24:59 -04:00
2022-06-14 16:29:42 +02:00
2022-04-26 18:12:22 +02:00
2022-06-14 16:29:42 +02:00
2022-01-18 12:47:07 +01:00
2022-01-18 12:47:07 +01:00
2022-04-26 18:12:22 +02:00
2022-05-23 13:59:05 +02:00
2022-05-23 14:11:29 +02:00
2022-05-26 15:46:04 -07:00
2022-06-14 16:29:42 +02:00
2022-04-25 13:23:20 +02:00
2022-04-26 18:12:22 +02:00
2022-01-18 12:47:07 +01:00
2022-01-18 12:47:07 +01:00
2022-01-18 12:47:07 +01:00
2022-06-10 14:23:19 -04:00
2022-02-22 11:05:26 -05:00
2022-05-12 10:51:13 +02:00
2022-04-25 13:23:20 +02:00
2022-02-22 11:05:26 -05:00
2022-01-18 12:47:07 +01:00
2022-01-12 17:07:30 +01:00
2022-01-18 12:47:07 +01:00
2022-01-18 12:47:07 +01:00
2022-04-29 14:06:38 +02:00
2022-01-18 12:47:07 +01:00
2022-04-28 13:29:01 +02:00