From 6ea13fd87282cbb564984fc09e22d099232bdd9c Mon Sep 17 00:00:00 2001 From: TomSweeneyRedHat Date: Tue, 10 Nov 2020 19:45:36 -0500 Subject: Change podman build --pull=true to PullIfMissing One last tweak to the man page for 'build --pull' and after further testing against Docker, one slight change to the pull policy. First I changed `--pull=false` from PullNever to PullIfMissing. This matches Docker and will pull the image if it's not present rather than erroring. We've the `--pull-never` option if someone wants the pull to not do an actual pull and to error if the image isn't local. Then for the man page, I'd a much bigger change, in the initial PR, I've backed most of that out and just added a tweak. Hopefully this puts this portion of the pull work behind us for a while. Signed-off-by: TomSweeneyRedHat --- cmd/podman/images/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/podman') diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go index f48d1cd94..5d0208c63 100644 --- a/cmd/podman/images/build.go +++ b/cmd/podman/images/build.go @@ -249,7 +249,7 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil } if flags.PullNever { - pullPolicy = imagebuildah.PullNever + pullPolicy = imagebuildah.PullIfMissing } args := make(map[string]string) -- cgit v1.2.3-54-g00ecf