diff --git a/cmd/podman/common/build.go b/cmd/podman/common/build.go index d0a5b623e0..a792961df5 100644 --- a/cmd/podman/common/build.go +++ b/cmd/podman/common/build.go @@ -324,6 +324,10 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *Buil pullPolicy = buildahDefine.PullNever } + if strings.EqualFold(strings.TrimSpace(flags.Pull), "newer") { + pullPolicy = buildahDefine.PullIfNewer + } + var cleanTmpFile bool flags.Authfile, cleanTmpFile = buildahUtil.MirrorToTempFileIfPathIsDescriptor(flags.Authfile) if cleanTmpFile {