summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-27 14:56:07 -0500
committerGitHub <noreply@github.com>2021-01-27 14:56:07 -0500
commit14cc4aaf0a364bf0f4f7f77ec5f58fd79b1cb99e (patch)
treeb639565d6f81d026bfb545a14e4e775e2f7c0364 /cmd/podman
parent1814fa2d21494a543881d7dc5bacffbb04d85d18 (diff)
parent15caebfe561952eaadd4896b7efb56f26724cce5 (diff)
downloadpodman-14cc4aaf0a364bf0f4f7f77ec5f58fd79b1cb99e.tar.gz
podman-14cc4aaf0a364bf0f4f7f77ec5f58fd79b1cb99e.tar.bz2
podman-14cc4aaf0a364bf0f4f7f77ec5f58fd79b1cb99e.zip
Merge pull request #9127 from vrothberg/fix-9111
podman build --pull: use correct policy
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/images/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go
index 4219e325b..957c0ac2d 100644
--- a/cmd/podman/images/build.go
+++ b/cmd/podman/images/build.go
@@ -266,7 +266,7 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil
pullPolicy := imagebuildah.PullIfMissing
if c.Flags().Changed("pull") && flags.Pull {
- pullPolicy = imagebuildah.PullAlways
+ pullPolicy = imagebuildah.PullIfNewer
}
if flags.PullAlways {
pullPolicy = imagebuildah.PullAlways