Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Scout Completely Filling Disk Space with Temporary Files #42

Open
david-engelmann opened this issue Sep 1, 2023 · 16 comments
Open

Comments

@david-engelmann
Copy link

I've recently updated my Docker Desktop and it added in Docker Scout, after a few days of normal use. My computer had filled entirely with temporary files in the AppData\Local\Temp directory. The folder was called Docker Scout. It shouldn't do that

@eunomie
Copy link
Member

eunomie commented Sep 1, 2023

Hi 👋
This folder is only about temporary files, so files should be automatically removed once handled.

Question to better understand how it happens: did you used the docker scout CLI or only the UI of desktop?

Starting with v0.23.2 you can now run docker scout cache df to list all the temporary and cached files and docker scout cache prune will allow to remove them.

@david-engelmann
Copy link
Author

@eunomie I didn't use the docker scout commands from a terminal, I didnt even really engage in docker scout from the Docker Desktop UI. It was added on update, I continued to use docker as normal, building, rebuilding etc. for a work day, max two. By the time I noticed it was creating lots of temporary files, It had stored over 500gb of temporary files and my disk space had hit zero

@eunomie
Copy link
Member

eunomie commented Sep 1, 2023

Ok, that's definitely unexpected.
A few other questions if you don't mind, just to better understand your use case and target the issue.
What type of image is it? Is that for instance big images? Let's say more than a few GB?
Are you also building windows images?

@david-engelmann
Copy link
Author

2 redis-alpine and 2 ubuntu 20.04 images, nothing over 2.5 GBs

@david-engelmann
Copy link
Author

This issue still persist, Docker scout is claiming around 500gb's of space ever two to three weeks.

@davidhewitt
Copy link

I'm having the same problem. Looks like docker-scout was installed in a Docker Desktop update a week ago and I have 300GB of temporary files generated by it already.

All my docker builds are done inside a WSL2 ubuntu container, otherwise I don't think I'm doing anything special.

@david-engelmann
Copy link
Author

@davidhewitt Since I updated to a version with docker scout, I've had to periodically, delete all the folders in "~\AppData\Local\Temp\docker-scout\sha256" to stop it from consuming all my memory. It doesn't seem to clean up the past tar files when the container/image/volumes are deleted

@Troesler-illuminate
Copy link

I am experiencing this issue as well! 75GB of space until my computer (Windows 11) ran out of free storage space. I also do not use docker scout from the CLI, and have barely interacted with it using Docker Desktop (and WSL2 integration enabled).

@david-engelmann
Copy link
Author

@Troesler-illuminate From what I'm seeing, it looks like docker scout is grabbing 2 or 3 gb ever time I build without caching. When I abandon the artifacts / old build setup to test changes etc, it's holding on to the scout results, until you clean them out manually, either by cli command or deleting the folders inside AppData

@joaquinalvarezdev
Copy link

Hey, just wanted to add here that I'm experiecing the same thing, I've updated docker and keep doing my workflow as usual and seems that every time I build an image it grabs almost 2.4GB and then it never gets cleaned up. Im using Windows 11 and have setup docker desktop with WSL2

@razmser
Copy link

razmser commented Nov 10, 2023

Same here, docker-scout ate up all space. I don't even knew it existed before.
Moving its cache away from C:\ somewhat helps
DOCKER_SCOUT_CACHE_DIR

@radman-rt
Copy link

@razmser How to set DOCKER_SCOUT_CACHE_DIR? Where is it located? How to change it? For Windows 10/Docker Desktop.

@david-engelmann
Copy link
Author

any update here?

@zbarnz
Copy link

zbarnz commented Apr 27, 2024

I am getting this issue. Ive only ever used the docker compose CLI and I'm having alot of disc space issues. One being these docker scout files. They dont get cleaned up by using docker desktops built in clean / purge functionality either. I have to run docker scout cache prune to free up the space after pruning all my other docker data.

@Michal-Zablocki
Copy link

Michal-Zablocki commented May 20, 2024

Bump, updated docker today and my disk space hit 0 literally a few minutes later (and I had already disabled the experimental features before running the update).

@DoiiarX
Copy link

DoiiarX commented May 21, 2024

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants