mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00
Add new exit codes to rm & rmi for running containers & dependencies
This enables programs and scripts wrapping the podman command to handle 'podman rm' and 'podman rmi' failures caused by paused or running containers or due to images having other child images or dependent containers. These errors are common enough that it makes sense to have a more machine readable way of detecting them than parsing the standard error output. Signed-off-by: Ondrej Zoder <ozoder@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -49,7 +49,7 @@ var _ = Describe("Podman rm", func() {
|
||||
|
||||
result := podmanTest.Podman([]string{"rm", cid})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result.ExitCode()).To(Equal(125))
|
||||
Expect(result.ExitCode()).To(Equal(2))
|
||||
})
|
||||
|
||||
It("podman rm created container", func() {
|
||||
|
Reference in New Issue
Block a user