mirror of
https://github.com/containers/podman.git
synced 2025-10-25 18:25:59 +08:00
v2podman container cleanup
add the ability to clean up after a container has attempted to run. this is also important for podman run --rm --rmi. also included are fixes and tweaks to various code bits to correct regressions on output. Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -265,3 +265,21 @@ type ContainerRunReport struct {
|
||||
ExitCode int
|
||||
Id string
|
||||
}
|
||||
|
||||
// ContainerCleanupOptions are the CLI values for the
|
||||
// cleanup command
|
||||
type ContainerCleanupOptions struct {
|
||||
All bool
|
||||
Latest bool
|
||||
Remove bool
|
||||
RemoveImage bool
|
||||
}
|
||||
|
||||
// ContainerCleanupReport describes the response from a
|
||||
// container cleanup
|
||||
type ContainerCleanupReport struct {
|
||||
CleanErr error
|
||||
Id string
|
||||
RmErr error
|
||||
RmiErr error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user