diff options
author | maybe-sybr <58414429+maybe-sybr@users.noreply.github.com> | 2020-07-01 09:49:44 +1000 |
---|---|---|
committer | maybe-sybr <58414429+maybe-sybr@users.noreply.github.com> | 2020-07-02 16:33:19 +1000 |
commit | 3aa22cb1be83dbe322c3fabec29b231bdc1be141 (patch) | |
tree | f686eb4772087aded79cac7e21f98400b2fe30f4 /pkg/api/server | |
parent | cb61a2d858d7874c66bafcf6d17c17bb9d7849e8 (diff) | |
download | podman-3aa22cb1be83dbe322c3fabec29b231bdc1be141.tar.gz podman-3aa22cb1be83dbe322c3fabec29b231bdc1be141.tar.bz2 podman-3aa22cb1be83dbe322c3fabec29b231bdc1be141.zip |
APIv2:fix: Handle docker volume force as expected
In response to input regarding the semantic difference for the `force`
parameter for volume removal between Docker and us, this change ensures
that we emulate the Dockr behaviour correctly when this parameter is
specified.
Signed-off-by: Matt Brindley <58414429+maybe-sybr@users.noreply.github.com>
Diffstat (limited to 'pkg/api/server')
-rw-r--r-- | pkg/api/server/register_volumes.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/api/server/register_volumes.go b/pkg/api/server/register_volumes.go index 7a64a27ec..0f4f18b0a 100644 --- a/pkg/api/server/register_volumes.go +++ b/pkg/api/server/register_volumes.go @@ -186,7 +186,10 @@ func (s *APIServer) registerVolumeHandlers(r *mux.Router) error { // - in: query // name: force // type: boolean - // description: force removal + // description: | + // Force removal of the volume. This actually only causes errors due + // to the names volume not being found to be suppressed, which is the + // behaviour Docker implements. // produces: // - application/json // responses: |