Skip to content

Commit d77461c

Browse files
authored
Merge pull request #4188 from finalchild/autoremove
Explain the auto-removal of anonymous volumes at the description of 'create --rm' and 'run --rm'
2 parents 666e4d5 + fb09d82 commit d77461c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

contrib/completion/fish/docker.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s p -l publish
251251
complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s P -l publish-all -d 'Publish all exposed ports to random ports'
252252
complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l read-only -d "Mount the container's root filesystem as read only"
253253
complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l restart -d 'Restart policy to apply when a container exits'
254-
complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l rm -d 'Automatically remove the container when it exits'
254+
complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l rm -d 'Automatically remove the container and its associated anonymous volumes when it exits'
255255
complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l runtime -d 'Runtime to use for this container'
256256
complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l security-opt -d 'Security Options'
257257
complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l shm-size -d 'Size of /dev/shm'

docs/reference/commandline/container_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ the container and remove the file system when the container exits, use the
12331233
`--rm` flag:
12341234

12351235
```text
1236-
--rm: Automatically remove the container when it exits
1236+
--rm: Automatically remove the container and its associated anonymous volumes when it exits
12371237
```
12381238

12391239
> [!NOTE]

man/docker-run.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ its root filesystem mounted as read only prohibiting any writes.
618618
Default is **no**.
619619

620620
**--rm** **true**|**false**
621-
Automatically remove the container when it exits. The default is **false**.
621+
Automatically remove the container and its associated anonymous volumes when it exits. The default is **false**.
622622
`--rm` flag can work together with `-d`, and auto-removal will be done on
623623
daemon side. Note that it's incompatible with any restart policy other than
624624
`none`.

0 commit comments

Comments
 (0)