Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Clean up Docker image apt cache the right way #1269

Merged
merged 1 commit into from
May 31, 2024

Conversation

PeterDaveHello
Copy link
Contributor

According to the official best practices guidelines outlined in the following document: https://docs.docker.com/develop/develop-images/instructions/#apt-get

The official Debian/Ubuntu images have been configured to do apt-get clean automatically. Consequently, performing another apt-get clean is unnecessary. Instead, it is crucial to clear the cache for the index file by executing this command: rm -rf /var/lib/apt/lists/*.

According to the official best practices guidelines outlined in the following document:
https://docs.docker.com/develop/develop-images/instructions/#apt-get

The official Debian/Ubuntu images have been configured to do apt-get clean automatically. Consequently, performing another `apt-get clean` is unnecessary. Instead, it is crucial to clear the cache for the index file by executing this command: `rm -rf /var/lib/apt/lists/*`.
@ggordonhall ggordonhall merged commit a4dff8c into BloopAI:oss May 31, 2024
3 checks passed
@PeterDaveHello PeterDaveHello deleted the patch-1 branch May 31, 2024 14:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants