Skip to content

Simple way to Compact Docker.raw disk #771

Open
@robd003

Description

Tell us about your request
I'd like a simple way to compact my Docker.raw disk

Which service(s) is this request for?
Docker Desktop

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
The docker volume will grow over time due to build cache and many images. Sometimes you'd like to reclaim free space back to your primary OS. Right now there is no easy way to do that.

Are you currently working around the issue?
Fully deleting my Docker disk image and starting from scratch.

Additional context
If possible it would be great to just shrink the existing volume. If not, then creating a new volume and copying over data from the "old" volume to the "new" volume and then deleting the "old" volume would work too.

Please make this a simple action available from within the Docker Desktop UI. I'd also accept something like docker system compact

Using docker system prune is not sufficient as it only cleans up the internal state of the disk, but the actual disk image on your OS remains the same size.

Metadata

Assignees

No one assigned

    Labels

    community_newNew idea raised by a community contributor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions