Skip to content

docker ps --filter 'name=*data*' feature request #8959

@abevoelker

Description

@abevoelker

Since the container pinning PR got shot down, it would be nice if docker ps could accept a regex or wildcard filter on container names. Currently, if I run

docker rm $(docker ps -a -q)

to clear out space on my system by deleting stopped containers, it will also delete any data-only containers I have (because I run them with docker run busybox true). I wrote a hacky script to filter out container names that have "data" in them, but it would be cool if I could just use docker ps natively to do it instead of having to lug around a special script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions