8000 `label` filter for `docker system prune` ignored by non-recent Docker hosts · Issue #17 · docker/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
label filter for docker system prune ignored by non-recent Docker hosts #17
Closed
@aduermael

Description

@aduermael

label filter for docker system prune (and others like docker container prune) has been added in that commit: moby/moby@7025247

But using it targeting non-recent Docker hosts may be dangerous has this filter is not even considered.

It leads to situations like this one:

$ docker create --label foo=bar redis
5fb69165f8069420f34117c7ec1bc62b55c56cf1f9d9c148188bab1814b3d859
$ docker container prune --filter label=foo=nope
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Deleted Containers:
5fb69165f8069420f34117c7ec1bc62b55c56cf1f9d9c148188bab1814b3d859

The CLI should display return an error when using that filter if remote API version to 1.29.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0