diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-01-28 17:53:05 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-01-28 17:53:12 +0100 |
commit | c450092fde60417e3a8f9d1a2d59a7ce2eff23e4 (patch) | |
tree | d0110e26fa5fb643eabb4f41a969709670a12e9e /cmd | |
parent | fb653c43ed1eb9eb9b97ca80edb8df6caab88905 (diff) | |
download | podman-c450092fde60417e3a8f9d1a2d59a7ce2eff23e4.tar.gz podman-c450092fde60417e3a8f9d1a2d59a7ce2eff23e4.tar.bz2 podman-c450092fde60417e3a8f9d1a2d59a7ce2eff23e4.zip |
Revert "podman build --pull: use correct policy"
This reverts commit 15caebfe561952eaadd4896b7efb56f26724cce5.
The previous behaviour of `--pull` to *always* attempt to pull the image
and error out if the pull failed aligns with Docker. Since Podman aims
at feature parity with Docker, the `--pull` behaviour must match.
Fixes: #9134
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/images/build.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go index 957c0ac2d..4219e325b 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.PullIfNewer + pullPolicy = imagebuildah.PullAlways } if flags.PullAlways { pullPolicy = imagebuildah.PullAlways |