summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-07-08 12:58:37 -0400
committerGitHub <noreply@github.com>2022-07-08 12:58:37 -0400
commite2557c787c450008333e3c6b400b90810b3e9e68 (patch)
tree6e3fd8a7126f4e3e18ad2cffd2e31c554a2e977e /cmd/podman
parent80f0ead64ab8a9998c2486ceeaf4e994821c9498 (diff)
parent6b9abe69dbe6b08ba817759685618fdb485721d5 (diff)
downloadpodman-e2557c787c450008333e3c6b400b90810b3e9e68.tar.gz
podman-e2557c787c450008333e3c6b400b90810b3e9e68.tar.bz2
podman-e2557c787c450008333e3c6b400b90810b3e9e68.zip
Merge pull request #14870 from vrothberg/fix-14846
improve pull-policy documentation
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/common/completion.go2
-rw-r--r--cmd/podman/common/create.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/common/completion.go b/cmd/podman/common/completion.go
index ae30f2875..6e6c33f9b 100644
--- a/cmd/podman/common/completion.go
+++ b/cmd/podman/common/completion.go
@@ -966,7 +966,7 @@ func AutocompleteLogOpt(cmd *cobra.Command, args []string, toComplete string) ([
// AutocompletePullOption - Autocomplete pull options for create and run command.
// -> "always", "missing", "never"
func AutocompletePullOption(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
- pullOptions := []string{"always", "missing", "never"}
+ pullOptions := []string{"always", "missing", "never", "newer"}
return pullOptions, cobra.ShellCompDirectiveNoFileComp
}
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go
index c1a744011..923d0517f 100644
--- a/cmd/podman/common/create.go
+++ b/cmd/podman/common/create.go
@@ -390,7 +390,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
createFlags.StringVar(
&cf.Pull,
pullFlagName, cf.Pull,
- `Pull image before creating ("always"|"missing"|"never")`,
+ `Pull image policy`,
)
_ = cmd.RegisterFlagCompletionFunc(pullFlagName, AutocompletePullOption)