Skip to content

Explain the auto-removal of anonymous volumes at the description of 'create --rm' and 'run --rm'#4188

Merged
vvoland merged 1 commit into
docker:masterfrom
finalchild:autoremove
May 14, 2026
Merged

Explain the auto-removal of anonymous volumes at the description of 'create --rm' and 'run --rm'#4188
vvoland merged 1 commit into
docker:masterfrom
finalchild:autoremove

Conversation

@finalchild
Copy link
Copy Markdown
Contributor

@finalchild finalchild commented Apr 11, 2023

Original:
Automatically remove the container when it exits
Change to:
Automatically remove the container and its associated anonymous volumes when it exits

The behavior is currently not properly documented and can be a source of confusion. Only docs/reference/run.md has a note about it. podman run --rm has similar behavior and it is documented.

It is the same as calling docker rm -v on container exit. code

Explain the auto-removal of anonymous volumes
at the description of 'create --rm' and 'run --rm'

Signed-off-by: Park Jaeon <me@finalchild.dev>
@thaJeztah thaJeztah requested a review from a team as a code owner May 14, 2026 01:23
@thaJeztah
Copy link
Copy Markdown
Member

rebased; looks like most of this was done in #5084, but this PR had a couple of remaining spots.

@thaJeztah thaJeztah added this to the 29.5.0 milestone May 14, 2026
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@vvoland vvoland merged commit d77461c into docker:master May 14, 2026
93 of 94 checks passed
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.

4 participants