diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-12-15 14:41:47 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-12-16 15:31:29 +0100 |
commit | f241efb17993a3234008ed95e899ad1ae849fca0 (patch) | |
tree | 4ddca05b1e82e2edb548418a7000794a7574fc0c /pkg/machine/config.go | |
parent | d984fec351c06a95f8a51c7e6ced819c6b17245f (diff) | |
download | podman-f241efb17993a3234008ed95e899ad1ae849fca0.tar.gz podman-f241efb17993a3234008ed95e899ad1ae849fca0.tar.bz2 podman-f241efb17993a3234008ed95e899ad1ae849fca0.zip |
bindings rmi test: clarify behavior
The libpod/images/remove endpoint is not very REST-ish but, after some
debate, was decided to be implemented as for the following reasons.
First, it allows for batch removing images which improves performance
significantly. Note that Docker does support `rmi -a`!
Second, it allows for hiding the logic of setting the right exit code to
use from the client and keep all the logic on the server.
Hence, when removing an image that does not exist, the server will
return a 200. The response, however, includes the error message to be
used *and* the exit code that podman-remote will use.
Fixes: #12441
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/machine/config.go')
0 files changed, 0 insertions, 0 deletions