docker / roadmap

Welcome to the Public Roadmap for All Things Docker! We welcome your ideas.
https://github.com/orgs/docker/projects/51
Creative Commons Zero v1.0 Universal
1.74k stars 261 forks source link

[Docker Desktop] Add settings for Docker Scout cache management #578

Open mmarinchenko opened 1 year ago

mmarinchenko commented 1 year ago

Tell us about your request

Potentially useful settings:

Which service(s) is this request for?

Docker Desktop, Docker Scout.

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?

Docker Scout saves image archives in the %TEMP%\docker-scout directory (on Windows) and never deletes them. This can quickly lead to 100+ GB of wasted disk space during active development. We need a way to manage this behavior.

Are you currently working around the issue?

Additional context

https://github.com/docker/for-win/issues/244#issuecomment-1737041341

jonnyrobots commented 1 year ago

The docker scout command-line tool (included with Docker Desktop) provides clean up commands. Read more about the docker scout cache df and docker scout cache prune commands in our reference documentation here.

mmarinchenko commented 1 year ago

The OS shell also provides cleanup commands. But the docker scout command-line tool does not rely on this fact. I.e., it does not force the user to go and clean up after himself manually by running OS commands.

DD should provide the same level of responsibility. If it runs something under the hood that leads to pollution of the user's file system, it should provide the ability to manage this behavior at the same level of user interaction (i.e., the UI). Be it docker scout or anything else.