Skip to content

Commit 2945532

Browse files
committed
fix --pull documentation
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent e5cd265 commit 2945532

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

cmd/compose/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func createCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service
7474
flags := cmd.Flags()
7575
flags.BoolVar(&opts.Build, "build", false, "Build images before starting containers.")
7676
flags.BoolVar(&opts.noBuild, "no-build", false, "Don't build an image, even if it's policy.")
77-
flags.StringVar(&opts.Pull, "pull", "policy", `Pull image before running ("always"|"policy"|"never")`)
77+
flags.StringVar(&opts.Pull, "pull", "policy", `Pull image before running ("always"|"missing"|"never"|"build")`)
7878
flags.BoolVar(&opts.forceRecreate, "force-recreate", false, "Recreate containers even if their configuration and image haven't changed.")
7979
flags.BoolVar(&opts.noRecreate, "no-recreate", false, "If containers already exist, don't recreate them. Incompatible with --force-recreate.")
8080
flags.BoolVar(&opts.removeOrphans, "remove-orphans", false, "Remove containers for services not defined in the Compose file.")

cmd/compose/up.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func upCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service) *c
102102
flags.BoolVarP(&up.Detach, "detach", "d", false, "Detached mode: Run containers in the background")
103103
flags.BoolVar(&create.Build, "build", false, "Build images before starting containers.")
104104
flags.BoolVar(&create.noBuild, "no-build", false, "Don't build an image, even if it's policy.")
105-
flags.StringVar(&create.Pull, "pull", "policy", `Pull image before running ("always"|"policy"|"never")`)
105+
flags.StringVar(&create.Pull, "pull", "policy", `Pull image before running ("always"|"missing"|"never")`)
106106
flags.BoolVar(&create.removeOrphans, "remove-orphans", false, "Remove containers for services not defined in the Compose file.")
107107
flags.StringArrayVar(&create.scale, "scale", []string{}, "Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present.")
108108
flags.BoolVar(&up.noColor, "no-color", false, "Produce monochrome output.")

docs/reference/compose_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Creates containers for a service.
1212
| `--force-recreate` | | | Recreate containers even if their configuration and image haven't changed. |
1313
| `--no-build` | | | Don't build an image, even if it's policy. |
1414
| `--no-recreate` | | | If containers already exist, don't recreate them. Incompatible with --force-recreate. |
15-
| `--pull` | `string` | `policy` | Pull image before running ("always"\|"policy"\|"never") |
15+
| `--pull` | `string` | `policy` | Pull image before running ("always"\|"missing"\|"never"\|"build") |
1616
| `--remove-orphans` | | | Remove containers for services not defined in the Compose file. |
1717
| `--scale` | `stringArray` | | Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present. |
1818

docs/reference/compose_up.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Create and start containers
2323
| `--no-log-prefix` | | | Don't print prefix in logs. |
2424
| `--no-recreate` | | | If containers already exist, don't recreate them. Incompatible with --force-recreate. |
2525
| `--no-start` | | | Don't start the services after creating them. |
26-
| `--pull` | `string` | `policy` | Pull image before running ("always"\|"policy"\|"never") |
26+
| `--pull` | `string` | `policy` | Pull image before running ("always"\|"missing"\|"never") |
2727
| `--quiet-pull` | | | Pull without printing progress information. |
2828
| `--remove-orphans` | | | Remove containers for services not defined in the Compose file. |
2929
| `-V`, `--renew-anon-volumes` | | | Recreate anonymous volumes instead of retrieving data from the previous containers. |

docs/reference/docker_compose_create.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ options:
5050
- option: pull
5151
value_type: string
5252
default_value: policy
53-
description: Pull image before running ("always"|"policy"|"never")
53+
description: Pull image before running ("always"|"missing"|"never"|"build")
5454
deprecated: false
5555
hidden: false
5656
experimental: false

docs/reference/docker_compose_up.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ options:
182182
- option: pull
183183
value_type: string
184184
default_value: policy
185-
description: Pull image before running ("always"|"policy"|"never")
185+
description: Pull image before running ("always"|"missing"|"never")
186186
deprecated: false
187187
hidden: false
188188
experimental: false

0 commit comments

Comments
 (0)