mirror of
https://github.com/containers/podman.git
synced 2025-07-01 00:01:02 +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)
|
||||
}
|
||||
flag.DefValue = "true"
|
||||
flag.Usage = "Always attempt to pull the image (errors are fatal)"
|
||||
flags.AddFlagSet(&budFlags)
|
||||
|
||||
// Add the completion functions
|
||||
budCompletions := buildahCLI.GetBudFlagsCompletions()
|
||||
completion.CompleteCommandFlags(cmd, budCompletions)
|
||||
|
@ -455,9 +455,8 @@ not required for Buildah as it supports only Linux.
|
||||
|
||||
#### **--pull**
|
||||
|
||||
When the option is specified or set to "true", pull the image from the first
|
||||
registry it is found in as listed in registries.conf. Raise an error if not
|
||||
found in the registries, even if the image is present locally.
|
||||
When the option is specified or set to "true", pull the image. Raise an error
|
||||
if the image could not be pulled, even if the image is present locally.
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user