diff --git a/contrib/completion/fish/docker.fish b/contrib/completion/fish/docker.fish index a18626bca84b..09fe7e147091 100644 --- a/contrib/completion/fish/docker.fish +++ b/contrib/completion/fish/docker.fish @@ -251,7 +251,7 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s p -l publish complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s P -l publish-all -d 'Publish all exposed ports to random ports' complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l read-only -d "Mount the container's root filesystem as read only" complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l restart -d 'Restart policy to apply when a container exits' -complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l rm -d 'Automatically remove the container when it exits' +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' complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l runtime -d 'Runtime to use for this container' complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l security-opt -d 'Security Options' complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l shm-size -d 'Size of /dev/shm' diff --git a/docs/reference/commandline/container_run.md b/docs/reference/commandline/container_run.md index dcf4c52f41e2..1dcc0fd5387b 100644 --- a/docs/reference/commandline/container_run.md +++ b/docs/reference/commandline/container_run.md @@ -1233,7 +1233,7 @@ the container and remove the file system when the container exits, use the `--rm` flag: ```text ---rm: Automatically remove the container when it exits +--rm: Automatically remove the container and its associated anonymous volumes when it exits ``` > [!NOTE] diff --git a/man/docker-run.1.md b/man/docker-run.1.md index a2241e0ffc35..475309a5c438 100644 --- a/man/docker-run.1.md +++ b/man/docker-run.1.md @@ -618,7 +618,7 @@ its root filesystem mounted as read only prohibiting any writes. Default is **no**. **--rm** **true**|**false** - Automatically remove the container when it exits. The default is **false**. + Automatically remove the container and its associated anonymous volumes when it exits. The default is **false**. `--rm` flag can work together with `-d`, and auto-removal will be done on daemon side. Note that it's incompatible with any restart policy other than `none`.