diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-04 16:42:02 +0200 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-04 16:42:02 +0200 |
commit | 3102194f036b830bd5e242a67d04e238a4f50bc0 (patch) | |
tree | d6279e063562d5059bdc84d0e976a2e27c24b879 /test | |
parent | 4dff697b772bc3a99e6b1e9755f48c2a6194348c (diff) | |
download | podman-3102194f036b830bd5e242a67d04e238a4f50bc0.tar.gz podman-3102194f036b830bd5e242a67d04e238a4f50bc0.tar.bz2 podman-3102194f036b830bd5e242a67d04e238a4f50bc0.zip |
podman rmi: improve error message for build containers
Improve the error message when attempting to remove an image that is in
use by an external/build container. Prior, the error only indicated
that the image was in use but did not aid in resolving the issue.
Fixes: #15006
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/system/010-images.bats | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/system/010-images.bats b/test/system/010-images.bats index aa390f236..16ee681a3 100644 --- a/test/system/010-images.bats +++ b/test/system/010-images.bats @@ -259,8 +259,8 @@ Labels.created_at | 20[0-9-]\\\+T[0-9:]\\\+Z run_podman 2 rmi -a is "$output" "Error: 2 errors occurred: -.** image used by .*: image is in use by a container -.** image used by .*: image is in use by a container" +.** image used by .*: image is in use by a container: consider listing external containers and force-removing image +.** image used by .*: image is in use by a container: consider listing external containers and force-removing image" run_podman rmi -af is "$output" "Untagged: $IMAGE @@ -292,7 +292,7 @@ Deleted: $pauseID" "infra images gets removed as well" pauseID=$output run_podman 2 rmi $pauseImage - is "$output" "Error: image used by .* image is in use by a container" + is "$output" "Error: image used by .* image is in use by a container: consider listing external containers and force-removing image" run_podman rmi -f $pauseImage is "$output" "Untagged: $pauseImage |