mirror of https://github.com/docker/cli.git
Merge pull request #5084 from thaJeztah/improve_rm_flag_description
run, create: update "--rm" flag description to mention anonymous volumes
This commit is contained in:
commit
57a1180c52
|
@ -208,7 +208,7 @@ func addFlags(flags *pflag.FlagSet) *containerOptions {
|
||||||
flags.Var(copts.ulimits, "ulimit", "Ulimit options")
|
flags.Var(copts.ulimits, "ulimit", "Ulimit options")
|
||||||
flags.StringVarP(&copts.user, "user", "u", "", "Username or UID (format: <name|uid>[:<group|gid>])")
|
flags.StringVarP(&copts.user, "user", "u", "", "Username or UID (format: <name|uid>[:<group|gid>])")
|
||||||
flags.StringVarP(&copts.workingDir, "workdir", "w", "", "Working directory inside the container")
|
flags.StringVarP(&copts.workingDir, "workdir", "w", "", "Working directory inside the container")
|
||||||
flags.BoolVar(&copts.autoRemove, "rm", false, "Automatically remove the container when it exits")
|
flags.BoolVar(&copts.autoRemove, "rm", false, "Automatically remove the container and its associated anonymous volumes when it exits")
|
||||||
|
|
||||||
// Security
|
// Security
|
||||||
flags.Var(&copts.capAdd, "cap-add", "Add Linux capabilities")
|
flags.Var(&copts.capAdd, "cap-add", "Add Linux capabilities")
|
||||||
|
|
|
@ -93,7 +93,7 @@ Create a new container
|
||||||
| `-q`, `--quiet` | | | Suppress the pull output |
|
| `-q`, `--quiet` | | | Suppress the pull output |
|
||||||
| `--read-only` | | | Mount the container's root filesystem as read only |
|
| `--read-only` | | | Mount the container's root filesystem as read only |
|
||||||
| `--restart` | `string` | `no` | Restart policy to apply when a container exits |
|
| `--restart` | `string` | `no` | Restart policy to apply when a container exits |
|
||||||
| `--rm` | | | Automatically remove the container when it exits |
|
| `--rm` | | | Automatically remove the container and its associated anonymous volumes when it exits |
|
||||||
| `--runtime` | `string` | | Runtime to use for this container |
|
| `--runtime` | `string` | | Runtime to use for this container |
|
||||||
| `--security-opt` | `list` | | Security Options |
|
| `--security-opt` | `list` | | Security Options |
|
||||||
| `--shm-size` | `bytes` | `0` | Size of /dev/shm |
|
| `--shm-size` | `bytes` | `0` | Size of /dev/shm |
|
||||||
|
|
|
@ -95,7 +95,7 @@ Create and run a new container from an image
|
||||||
| `-q`, `--quiet` | | | Suppress the pull output |
|
| `-q`, `--quiet` | | | Suppress the pull output |
|
||||||
| [`--read-only`](#read-only) | | | Mount the container's root filesystem as read only |
|
| [`--read-only`](#read-only) | | | Mount the container's root filesystem as read only |
|
||||||
| [`--restart`](#restart) | `string` | `no` | Restart policy to apply when a container exits |
|
| [`--restart`](#restart) | `string` | `no` | Restart policy to apply when a container exits |
|
||||||
| [`--rm`](#rm) | | | Automatically remove the container when it exits |
|
| [`--rm`](#rm) | | | Automatically remove the container and its associated anonymous volumes when it exits |
|
||||||
| `--runtime` | `string` | | Runtime to use for this container |
|
| `--runtime` | `string` | | Runtime to use for this container |
|
||||||
| [`--security-opt`](#security-opt) | `list` | | Security Options |
|
| [`--security-opt`](#security-opt) | `list` | | Security Options |
|
||||||
| `--shm-size` | `bytes` | `0` | Size of /dev/shm |
|
| `--shm-size` | `bytes` | `0` | Size of /dev/shm |
|
||||||
|
|
|
@ -93,7 +93,7 @@ Create a new container
|
||||||
| `-q`, `--quiet` | | | Suppress the pull output |
|
| `-q`, `--quiet` | | | Suppress the pull output |
|
||||||
| `--read-only` | | | Mount the container's root filesystem as read only |
|
| `--read-only` | | | Mount the container's root filesystem as read only |
|
||||||
| `--restart` | `string` | `no` | Restart policy to apply when a container exits |
|
| `--restart` | `string` | `no` | Restart policy to apply when a container exits |
|
||||||
| `--rm` | | | Automatically remove the container when it exits |
|
| `--rm` | | | Automatically remove the container and its associated anonymous volumes when it exits |
|
||||||
| `--runtime` | `string` | | Runtime to use for this container |
|
| `--runtime` | `string` | | Runtime to use for this container |
|
||||||
| `--security-opt` | `list` | | Security Options |
|
| `--security-opt` | `list` | | Security Options |
|
||||||
| `--shm-size` | `bytes` | `0` | Size of /dev/shm |
|
| `--shm-size` | `bytes` | `0` | Size of /dev/shm |
|
||||||
|
|
|
@ -95,7 +95,7 @@ Create and run a new container from an image
|
||||||
| `-q`, `--quiet` | | | Suppress the pull output |
|
| `-q`, `--quiet` | | | Suppress the pull output |
|
||||||
| `--read-only` | | | Mount the container's root filesystem as read only |
|
| `--read-only` | | | Mount the container's root filesystem as read only |
|
||||||
| `--restart` | `string` | `no` | Restart policy to apply when a container exits |
|
| `--restart` | `string` | `no` | Restart policy to apply when a container exits |
|
||||||
| `--rm` | | | Automatically remove the container when it exits |
|
| `--rm` | | | Automatically remove the container and its associated anonymous volumes when it exits |
|
||||||
| `--runtime` | `string` | | Runtime to use for this container |
|
| `--runtime` | `string` | | Runtime to use for this container |
|
||||||
| `--security-opt` | `list` | | Security Options |
|
| `--security-opt` | `list` | | Security Options |
|
||||||
| `--shm-size` | `bytes` | `0` | Size of /dev/shm |
|
| `--shm-size` | `bytes` | `0` | Size of /dev/shm |
|
||||||
|
|
Loading…
Reference in New Issue