Skip to content

Add "-a" flag to "Prune everything" section so it includes all unused images, not just dangling ones - #17488

Closed
coritanic wants to merge 1 commit into
docker:mainfrom
coritanic:patch-1
Closed

Add "-a" flag to "Prune everything" section so it includes all unused images, not just dangling ones#17488
coritanic wants to merge 1 commit into
docker:mainfrom
coritanic:patch-1

Conversation

@coritanic

Copy link
Copy Markdown

Proposed changes

"Prune everything" should prune all unnecessary components, including unused images. If someone doesn't want to delete unused images, they can omit the "-a" flag. This way, people who want to clean unused components can attain their purpose.

Related issues (optional)

@netlify

netlify Bot commented Jun 7, 2023

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 17f0a5f
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/64800b6ebd38e90008c3281e
😎 Deploy Preview https://deploy-preview-17488--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 site settings.

Comment thread config/pruning.md
@docker-robot

docker-robot Bot commented Oct 2, 2023

Copy link
Copy Markdown

Thanks for the pull request. We'd like to make our product docs better, but haven’t been able to review all the suggestions.
As our docs have also diverged, we do not have the bandwidth to review and rebase old pull requests.

If the updates are still relevant, review our contribution guidelines and rebase your pull request against the latest version of the docs, then mark it as fresh with a /remove-lifecycle stale comment.
If not, this pull request will be closed in 30 days. This helps our maintainers focus on the active pull requests.

Prevent pull requests from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

@docker-robot docker-robot Bot closed this Nov 1, 2023
@coritanic
coritanic deleted the patch-1 branch December 28, 2023 09:42
dvdksn pushed a commit that referenced this pull request Aug 13, 2026
- Problem: the prune-everything section said the default removes all unused images. Live docker system prune only removes dangling images unless -a is passed.
- Fix: say unused containers/networks plus dangling images by default, and that unused tagged images need -a/--all.
- Verification: docker 29.1.3 — default warning lists "all dangling images"; docker system prune -a lists "all images without at least one container associated to them". Closed #17488 wanted to change the example to include -a and went stale; this only corrects the default-behavior sentence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants