-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman rm -f con1 con2 con-nonexistent not working #21529
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
Isn't this what |
Well yes -f implies --ignore but it doesn't change the fact that this command did nothing even though I gave it 2 valid containers. When you run |
A friendly reminder that this issue had no activity for 30 days. |
Luap99
added a commit
to Luap99/libpod
that referenced
this issue
Apr 4, 2024
When we remove with --force we do not return a error if the input does not exists, however if we get more than on input we must try to remove all and not just just NOP out and not remove anything just because one arg did not exists. Also make the code simpler for commands that do have the --ignore option and just make --force imply --ignore which reduces the ugly error handling. Fixes containers#21529 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Luap99
added a commit
to Luap99/libpod
that referenced
this issue
Apr 4, 2024
When we remove with --force we do not return a error if the input does not exists, however if we get more than on input we must try to remove all and not just NOP out and not remove anything just because one arg did not exists. Also make the code simpler for commands that do have the --ignore option and just make --force imply --ignore which reduces the ugly error handling. Fixes containers#21529 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Luap99
added a commit
to Luap99/libpod
that referenced
this issue
Apr 4, 2024
When we remove with --force we do not return a error if the input does not exists, however if we get more than on input we must try to remove all and not just NOP out and not remove anything just because one arg did not exists. Also make the code simpler for commands that do have the --ignore option and just make --force imply --ignore which reduces the ugly error handling. Fixes containers#21529 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Luap99
added a commit
to Luap99/libpod
that referenced
this issue
Apr 4, 2024
When we remove with --force we do not return a error if the input does not exists, however if we get more than on input we must try to remove all and not just NOP out and not remove anything just because one arg did not exists. Also make the code simpler for commands that do have the --ignore option and just make --force imply --ignore which reduces the ugly error handling. Fixes containers#21529 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Describe your issue
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
The rm commands returns with exit code 0 and no error printed.
Describe the results you expected
both containers gone
podman info output
latest main
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
Without
-f
there is a proper error report that t3 does not exists but I think t1 and t2 should still be deleted.Error: no container with ID or name "t3" found: no such container
The text was updated successfully, but these errors were encountered: