spiegel_podman/docs/source/markdown
TomSweeneyRedHat 7841aea292 Match build pull functionality with Docker's
This is a continuation of #8189 and #8085.

When doing a `docker build` command, if the `--pull` command is not specified
or set to `false` the pullOption used is `PullifMissing`.  This causes the
build to pull the image only if it is not present in local storage.  It also will
raise an error if the image is not found in the registry (or the registry is down),
even if the image is present in local storage.

If the `--pull` command IS specified or specified with an argument of `true`, the
build will always pull the image from the registries.  This uses the pullOption
`PullAlways`.  It also will raise an error if the image is not found in the registry,
even if the image is present in local storage.

These changes now brings the pull functionality for `podman build` into line
with `docker build`.

However, I consider this to be a breaking change.  Previously if you did
`podman build --pull`, `podman build` or `podman build --pull = true`, then
the image would be pulled from the registry if there was not an image in
local storage or if the image in the registry was newer than the one in
local storage.  An error would *NOT* be raised if there was not an image in
the registry or the registry was down as long as there was a copy in the local
storage.  An error would be raised if the image could not be retrieved from
both the registry and local storage.  This is the PullOption `PullIfNewer`.

I believe this also differs from what Buildah does at this time but I'm too
beat to chase that down at the moment.

Personally I'd like to use the `PullIfNewer` for at least `--pull` and
`--pull=true` so that you don't get an error if the registry has a network
hiccup and the image is already stored locally.  But this differs from Docker.

I'd like to post scrum about this at our next stand up to make sure we're
all on the same page about the ramifications of this change.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-10-31 20:11:00 -04:00
..
links Add podman image mount 2020-07-28 10:27:44 -04:00
containers-mounts.conf.5.md [docs] Ensure we include section 5 documentation 2019-11-02 13:48:47 +01:00
podman-attach.1.md Switch references from libpod.conf to containers.conf 2020-07-20 15:09:54 -04:00
podman-auto-update.1.md --tls-verify and --authfile should work for all remote commands 2020-10-19 05:55:11 -04:00
podman-build.1.md Match build pull functionality with Docker's 2020-10-31 20:11:00 -04:00
podman-commit.1.md Implemented --iidfile for podman commit 2020-03-19 16:32:02 -04:00
podman-container-checkpoint.1.md man pages: fix inconsistencies 2020-03-10 15:03:59 -06:00
podman-container-cleanup.1.md Add ability to clean up exec sessions with cleanup 2020-05-20 16:11:05 -04:00
podman-container-exists.1.md Merge pull request #7908 from rhatdan/diff 2020-10-19 02:49:27 -04:00
podman-container-prune.1.md Make man page headings more consistent 2020-10-16 15:06:33 -05:00
podman-container-restore.1.md man pages: fix inconsistencies 2020-03-10 15:03:59 -06:00
podman-container-runlabel.1.md --tls-verify and --authfile should work for all remote commands 2020-10-19 05:55:11 -04:00
podman-container.1.md Cleanup handling of podman mount/unmount 2020-07-27 16:53:02 -04:00
podman-cp.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-create.1.md new "image" mount type 2020-10-29 15:06:22 +01:00
podman-diff.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-events.1.md filter events by labels 2020-10-23 12:07:34 -05:00
podman-exec.1.md Attempt to turn on additional build tests 2020-05-22 12:55:23 -04:00
podman-export.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-generate-kube.1.md Make man page headings more consistent 2020-10-16 15:06:33 -05:00
podman-generate-systemd.1.md Make man page headings more consistent 2020-10-16 15:06:33 -05:00
podman-generate.1.md Update podman-generate-systemd man page 2020-04-16 09:17:27 -04:00
podman-healthcheck-run.1.md Docs: consistency between man / --help 2020-06-24 10:39:10 -06:00
podman-healthcheck.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-history.1.md Attempt to turn on additional build tests 2020-05-22 12:55:23 -04:00
podman-image-diff.1.md Attempt to turn on additional build tests 2020-05-22 12:55:23 -04:00
podman-image-exists.1.md Make man page headings more consistent 2020-10-16 15:06:33 -05:00
podman-image-mount.1.md Add podman image mount 2020-07-28 10:27:44 -04:00
podman-image-prune.1.md Make man page headings more consistent 2020-10-16 15:06:33 -05:00
podman-image-sign.1.md codespell: spelling corrections 2019-11-13 08:15:00 +11:00
podman-image-tree.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-image-trust.1.md Fix & add notes regarding problematic language in codebase 2020-07-15 09:13:15 -04:00
podman-image-unmount.1.md Add podman image mount 2020-07-28 10:27:44 -04:00
podman-image.1.md Add missing pages for docs.podman.io 2020-08-10 19:35:23 -04:00
podman-images.1.md man pages: fix inconsistencies 2020-03-10 15:03:59 -06:00
podman-import.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-info.1.md add socket information to podman info 2020-06-03 15:20:37 -05:00
podman-init.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-inspect.1.md Add pod, volume, network to inspect package 2020-10-27 14:42:54 -04:00
podman-kill.1.md man pages: fix inconsistencies 2020-03-10 15:03:59 -06:00
podman-load.1.md remote load: check if input is directory 2020-09-24 14:40:54 +02:00
podman-login.1.md --tls-verify and --authfile should work for all remote commands 2020-10-19 05:55:11 -04:00
podman-logout.1.md --tls-verify and --authfile should work for all remote commands 2020-10-19 05:55:11 -04:00
podman-logs.1.md man pages: fix inconsistencies 2020-03-10 15:03:59 -06:00
podman-manifest-add.1.md --tls-verify and --authfile should work for all remote commands 2020-10-19 05:55:11 -04:00
podman-manifest-annotate.1.md Docs: consistency between man / --help 2020-06-24 10:39:10 -06:00
podman-manifest-create.1.md Manifest remove, push 2020-05-06 10:54:28 -04:00
podman-manifest-inspect.1.md Manifest remove, push 2020-05-06 10:54:28 -04:00
podman-manifest-push.1.md --tls-verify and --authfile should work for all remote commands 2020-10-19 05:55:11 -04:00
podman-manifest-remove.1.md Manifest remove, push 2020-05-06 10:54:28 -04:00
podman-manifest.1.md Manifest remove, push 2020-05-06 10:54:28 -04:00
podman-mount.1.md Cleanup handling of podman mount/unmount 2020-07-27 16:53:02 -04:00
podman-network-create.1.md Fixed typo on podman network create man 2020-05-08 13:18:23 +02:00
podman-network-inspect.1.md Docs: consistency between man / --help 2020-06-24 10:39:10 -06:00
podman-network-ls.1.md filter option added to network ls command. 2020-05-20 02:53:47 +00:00
podman-network-rm.1.md Fix handling of remove of bogus volumes, networks and Pods 2020-09-29 15:52:43 -04:00
podman-network.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-pause.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-play-kube.1.md --tls-verify and --authfile should work for all remote commands 2020-10-19 05:55:11 -04:00
podman-play.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-pod-create.1.md Add support for slirp network for pods 2020-09-25 21:34:23 -04:00
podman-pod-exists.1.md Make man page headings more consistent 2020-10-16 15:06:33 -05:00
podman-pod-inspect.1.md Add --format to pod inspect 2020-05-27 09:48:38 +03:00
podman-pod-kill.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-pod-pause.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-pod-prune.1.md Docs: consistency between man / --help 2020-06-24 10:39:10 -06:00
podman-pod-ps.1.md Restore --format: stats & pod ps 2020-10-13 09:08:13 -04:00
podman-pod-restart.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-pod-rm.1.md Fix handling of remove of bogus volumes, networks and Pods 2020-09-29 15:52:43 -04:00
podman-pod-start.1.md podman-pod{rm,start,stop}: support --pod-id-file 2020-06-11 11:01:13 +02:00
podman-pod-stats.1.md implement pod stats 2020-04-27 12:00:35 +02:00
podman-pod-stop.1.md podman-pod{rm,start,stop}: support --pod-id-file 2020-06-11 11:01:13 +02:00
podman-pod-top.1.md Switch use of Flags to Options 2020-10-21 08:37:57 -04:00
podman-pod-unpause.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-pod.1.md Remove containers when pruning a stopped pod. 2019-11-26 13:19:31 -05:00
podman-port.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-ps.1.md Add support for external container 2020-10-15 09:51:31 -04:00
podman-pull.1.md --tls-verify and --authfile should work for all remote commands 2020-10-19 05:55:11 -04:00
podman-push.1.md --tls-verify and --authfile should work for all remote commands 2020-10-19 05:55:11 -04:00
podman-remote.1.md Document the connection path for podman --remote 2020-09-14 17:06:24 -04:00
podman-restart.1.md Make man page headings more consistent 2020-10-16 15:06:33 -05:00
podman-rm.1.md This PR allows users to remove external containers directly 2020-10-09 06:06:08 -04:00
podman-rmi.1.md Fix handling of remove of bogus volumes, networks and Pods 2020-09-29 15:52:43 -04:00
podman-run.1.md new "image" mount type 2020-10-29 15:06:22 +01:00
podman-save.1.md support multi-image (docker) archives 2020-09-08 08:47:19 +02:00
podman-search.1.md Remove search limit since pagination support 2020-10-30 11:00:40 -04:00
podman-start.1.md Allow users to disable detach keys 2019-11-05 14:10:43 -05:00
podman-stats.1.md Restore --format: stats & pod ps 2020-10-13 09:08:13 -04:00
podman-stop.1.md Switch to using --time as opposed to --timeout to better match Docker. 2020-03-31 08:50:32 -04:00
podman-system-connection-add.1.md [WIP] Refactor podman system connection 2020-07-22 15:25:44 -07:00
podman-system-connection-default.1.md [WIP] Refactor podman system connection 2020-07-22 15:25:44 -07:00
podman-system-connection-list.1.md [WIP] Refactor podman system connection 2020-07-22 15:25:44 -07:00
podman-system-connection-remove.1.md [WIP] Refactor podman system connection 2020-07-22 15:25:44 -07:00
podman-system-connection-rename.1.md [WIP] Refactor podman system connection 2020-07-22 15:25:44 -07:00
podman-system-connection.1.md Add missing pages for docs.podman.io 2020-08-10 19:35:23 -04:00
podman-system-df.1.md markdown: fix erroneous asterisk markup for options 2020-01-30 06:44:33 -05:00
podman-system-migrate.1.md Switch references from libpod.conf to containers.conf 2020-07-20 15:09:54 -04:00
podman-system-prune.1.md docs: fix system-prune markdown; reword for clarity 2020-01-26 07:46:21 -05:00
podman-system-renumber.1.md Switch references from libpod.conf to containers.conf 2020-07-20 15:09:54 -04:00
podman-system-reset.1.md Update system.rst 2020-07-23 12:38:24 -04:00
podman-system-service.1.md Add a note on the APIs supported by system service 2020-06-29 14:26:07 -04:00
podman-system.1.md [WIP] Refactor podman system connection 2020-07-22 15:25:44 -07:00
podman-tag.1.md Update tag documentation regarding 'alias' usage 2020-01-17 08:51:36 +01:00
podman-top.1.md docs: update podman-{pod-,}top man pages 2019-12-11 10:50:27 +01:00
podman-unmount.1.md Cleanup handling of podman mount/unmount 2020-07-27 16:53:02 -04:00
podman-unpause.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-unshare.1.md Docs: consistency between man / --help 2020-06-24 10:39:10 -06:00
podman-untag.1.md Docs: consistency between man / --help 2020-06-24 10:39:10 -06:00
podman-version.1.md podman version --format ... was not working 2020-05-21 16:31:34 -04:00
podman-volume-create.1.md man pages: fix inconsistencies 2020-03-10 15:03:59 -06:00
podman-volume-inspect.1.md man pages: fix inconsistencies 2020-03-10 15:03:59 -06:00
podman-volume-ls.1.md man pages: fix inconsistencies 2020-03-10 15:03:59 -06:00
podman-volume-prune.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-volume-rm.1.md Fix handling of remove of bogus volumes, networks and Pods 2020-09-29 15:52:43 -04:00
podman-volume.1.md Update document formatting and packaging code 2019-10-31 12:31:39 -05:00
podman-wait.1.md Fix handling and documentation of podman wait --interval 2020-10-21 06:25:36 -04:00
podman.1.md Add pod, volume, network to inspect package 2020-10-27 14:42:54 -04:00