mirror of
https://github.com/containers/podman.git
synced 2025-07-01 16:17:06 +08:00
podman build --pull: refine help message and docs
Refine and correct the wording of the `--pull` flag in the help message and the docs. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -106,7 +106,9 @@ func buildFlags(cmd *cobra.Command) {
|
|||||||
logrus.Errorf("unable to set --pull to true: %v", err)
|
logrus.Errorf("unable to set --pull to true: %v", err)
|
||||||
}
|
}
|
||||||
flag.DefValue = "true"
|
flag.DefValue = "true"
|
||||||
|
flag.Usage = "Always attempt to pull the image (errors are fatal)"
|
||||||
flags.AddFlagSet(&budFlags)
|
flags.AddFlagSet(&budFlags)
|
||||||
|
|
||||||
// Add the completion functions
|
// Add the completion functions
|
||||||
budCompletions := buildahCLI.GetBudFlagsCompletions()
|
budCompletions := buildahCLI.GetBudFlagsCompletions()
|
||||||
completion.CompleteCommandFlags(cmd, budCompletions)
|
completion.CompleteCommandFlags(cmd, budCompletions)
|
||||||
|
@ -455,9 +455,8 @@ not required for Buildah as it supports only Linux.
|
|||||||
|
|
||||||
#### **--pull**
|
#### **--pull**
|
||||||
|
|
||||||
When the option is specified or set to "true", pull the image from the first
|
When the option is specified or set to "true", pull the image. Raise an error
|
||||||
registry it is found in as listed in registries.conf. Raise an error if not
|
if the image could not be pulled, even if the image is present locally.
|
||||||
found in the registries, even if the image is present locally.
|
|
||||||
|
|
||||||
If the option is disabled (with *--pull=false*) or not specified, pull the
|
If the option is disabled (with *--pull=false*) or not specified, pull the
|
||||||
image from the registry only if the image is not present locally. Raise an
|
image from the registry only if the image is not present locally. Raise an
|
||||||
|
Reference in New Issue
Block a user