Skip to content

Image and container garbage collection #18601

@bfirsh

Description

@bfirsh

It is an extremely common problem for Docker users to run out of disk space due to unused containers and images not being removed. In development, this can be an annoyance and confuse new users. In testing and production, it can be a critical problem. Anecdotally, we have heard of several users who have production systems go down due to Docker filling up their disks.

Docker should automatically remove images where it can, and provide easy-to-use tooling to remove images manually where users may not Docker to automatically delete data.

If we choose not have to any functionality in Docker itself, the common patterns should be clearly documented (e.g. docker rmi --help should suggest doing docker rmi $(docker images -aq)).

Possible solutions

Related

(Maintainers: Consider this a wiki to keep track of everything related to this issue... feel free to edit the description to add/remove/modify stuff.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions