Docs: Fix --rm=false flag in container_run.md #5435
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
- What I did
Corrected the usage of the
--rm=false
flag in thecontainer_run.md
documentation example. See Docker Container Run - Clean up for reference.- How I did it
Removed the incorrect
--rm=false
flag from the example and updated it to use the--rm
flag to comply with the example text:Automatically remove the container when it exits
. Also for the--rm=true
flag it is not necessary to specify true, as that is the default behavior.- How to verify it
docker run --rm alpine echo "Hello World"
in a Docker environment to confirm that the container is automatically removed after execution.docker run --rm=false alpine echo "Hello World"
in a Docker environment to confirm that the container is not automatically removed after execution.--rm
flag is used to remove a container when it exits. There is an error in the example of container run when it states that setting--rm=false
will remove a container when it exits.- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)