diff --git a/cli/command/container/create.go b/cli/command/container/create.go index 2598323d7e6e..122d15e2e149 100644 --- a/cli/command/container/create.go +++ b/cli/command/container/create.go @@ -71,7 +71,7 @@ func newCreateCommand(dockerCLI command.Cli) *cobra.Command { flags.SetInterspersed(false) flags.StringVar(&options.name, "name", "", "Assign a name to the container") - flags.StringVar(&options.pull, "pull", PullImageMissing, `Pull image before creating ("`+PullImageAlways+`", "|`+PullImageMissing+`", "`+PullImageNever+`")`) + flags.StringVar(&options.pull, "pull", PullImageMissing, `Pull image before creating ("`+PullImageAlways+`", "`+PullImageMissing+`", "`+PullImageNever+`")`) flags.BoolVarP(&options.quiet, "quiet", "q", false, "Suppress the pull output") flags.BoolVarP(&options.useAPISocket, "use-api-socket", "", false, "Bind mount Docker API socket and required auth") _ = flags.SetAnnotation("use-api-socket", "experimentalCLI", nil) // Mark flag as experimental for now. diff --git a/docs/reference/commandline/container_create.md b/docs/reference/commandline/container_create.md index 5bb5e18442db..d69b163389cb 100644 --- a/docs/reference/commandline/container_create.md +++ b/docs/reference/commandline/container_create.md @@ -87,7 +87,7 @@ Create a new container | `--privileged` | `bool` | | Give extended privileges to this container | | `-p`, `--publish` | `list` | | Publish a container's port(s) to the host | | `-P`, `--publish-all` | `bool` | | Publish all exposed ports to random ports | -| `--pull` | `string` | `missing` | Pull image before creating (`always`, `\|missing`, `never`) | +| `--pull` | `string` | `missing` | Pull image before creating (`always`, `missing`, `never`) | | `-q`, `--quiet` | `bool` | | Suppress the pull output | | `--read-only` | `bool` | | Mount the container's root filesystem as read only | | `--restart` | `string` | `no` | Restart policy to apply when a container exits | diff --git a/docs/reference/commandline/create.md b/docs/reference/commandline/create.md index 5a7390b7f26c..2a46bec81ab2 100644 --- a/docs/reference/commandline/create.md +++ b/docs/reference/commandline/create.md @@ -87,7 +87,7 @@ Create a new container | `--privileged` | `bool` | | Give extended privileges to this container | | `-p`, `--publish` | `list` | | Publish a container's port(s) to the host | | `-P`, `--publish-all` | `bool` | | Publish all exposed ports to random ports | -| `--pull` | `string` | `missing` | Pull image before creating (`always`, `\|missing`, `never`) | +| `--pull` | `string` | `missing` | Pull image before creating (`always`, `missing`, `never`) | | `-q`, `--quiet` | `bool` | | Suppress the pull output | | `--read-only` | `bool` | | Mount the container's root filesystem as read only | | `--restart` | `string` | `no` | Restart policy to apply when a container exits |