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

Large caches left in image #42

Closed
kouril opened this issue Oct 2, 2020 · 2 comments
Closed

Large caches left in image #42

kouril opened this issue Oct 2, 2020 · 2 comments

Comments

@kouril
Copy link

kouril commented Oct 2, 2020

The Docker image contains two large(r) cache directories:

699M /var/cache/salt
274M /root/.cache

these look like some installation artifacts, could they be removed from the image?

@lennyzeltser
Copy link
Contributor

Thanks for noticing! In a VM, I prefer to keep /var/cache/salt untouched, because I think it aids with faster upgrades. However, I think people will be less likely to update the distro inside the container and will instead periodically refresh the container image from Docker Hub. I'll take a closer look at removing contents of both cache directories from the Docker image, as saving a GB of disk space sounds very nice.

lennyzeltser added a commit that referenced this issue Oct 2, 2020
Remove /var/cache/salt and /root/.cache contents to free up disk space, per #42
@lennyzeltser
Copy link
Contributor

Done. The updated REMnux image file is 1 GB less than before. Thanks, @kouril!

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

2 participants