Skip to content

docs: clarify distinct purposes of --pull and --no-cache flags#25308

Open
jasdeepbhalla wants to merge 1 commit into
docker:mainfrom
jasdeepbhalla:fix/pull-no-cache-clarify-best-practices
Open

docs: clarify distinct purposes of --pull and --no-cache flags#25308
jasdeepbhalla wants to merge 1 commit into
docker:mainfrom
jasdeepbhalla:fix/pull-no-cache-clarify-best-practices

Conversation

@jasdeepbhalla

Copy link
Copy Markdown
Contributor

Summary

  • In the --pull section: adds that the flag only affects the FROM instruction — cached RUN layers are still reused. This prevents readers from assuming --pull alone gives them fresh dependencies.
  • In the --no-cache section: replaces the "however... doesn't pull a fresh base image" correction with a positive cross-reference to --pull, and reframes the combined usage as two complementary flags rather than a workaround.

Issue

Fixes #25291

@jasdeepbhalla jasdeepbhalla requested a review from dvdksn as a code owner June 8, 2026 21:38
@netlify

netlify Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 1cafb11
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a273648a03f27000857ed20
😎 Deploy Preview https://deploy-preview-25308--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the area/build Relates to Dockerfiles or docker build command label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Relates to Dockerfiles or docker build command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs-scanner] Contradictory guidance on --pull and --no-cache flags

1 participant