Skip to content

pre-commit hooks to delete the containers they create #37269

@rawwar

Description

@rawwar

Description

For every single pre-commit run, it seems we use docker to run several checks. But, these containers are not removed by default. Hence, I can see something as below in my docker desktop:

image

Use case/motivation

Would be nice if we can just use --rm when running the container or some other possible mechanism so that they are removed right after they are stopped.

Related issues

Could not find anything related.

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions