Commit Graph

2 Commits

Author SHA1 Message Date
Valentin Rothberg 2696c75e6d libimage: RemoveImages: add Ignore field
Add a field to `RemoveImages` that would ingore if a specified image
does not exist and not throw an error.

The intended use case is adding a `podman rmi --ignore` flag.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-03-17 14:55:16 +01:00
Valentin Rothberg da2875b837 libimage: force remove: only untag on multi tag image
When removing an image by name, do not remove the image and all its
tags, even if force is set.  Instead, just untag the specified name.

Note: adjust the load test to preserve the order in the untagged field.

Also vendor in the latest HEAD in containers/image to fix a bug revealed
in Podman CI.

Context: containers/podman/issues/10685
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-06-17 15:46:14 +02:00