Skip to content

Commit fcda0ed

Browse files
authored
Suggest disabling pip cache in containers
When building containers (like docker or podman) the layer system already handles the caching. Not disabling pip's cache could result in the duplication of the size of the images. I know this sujbject is not specially relevant to the documentation, so the comment is fairly small. Duplication of pip's cache is a recurrent problem in many Python images
1 parent c9cb7f4 commit fcda0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/html/topics/caching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,6 @@ The {ref}`pip cache` command can be used to manage pip's cache.
140140

141141
pip's caching behaviour is disabled by passing the `--no-cache-dir` option.
142142

143-
It is, however, recommended to **NOT** disable pip's caching. Doing so can
143+
It is, however, recommended to **NOT** disable pip's caching (except for building containerized appplications). Doing so can
144144
significantly slow down pip (due to repeated operations and package builds)
145145
and result in significantly more network usage.

0 commit comments

Comments
 (0)