aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-06 09:28:08 -0400
committerGitHub <noreply@github.com>2020-07-06 09:28:08 -0400
commit9bccb0f091a82656593a069891f143e78a8719e9 (patch)
tree244bf49bf01b60e73a189003b8a615270c74c077
parent4351e3394788ad5b0a62cb74a97382cee5112bf0 (diff)
parent0ef5def0beb7f7e5f12db7c9fba1d1b7bb45ce73 (diff)
downloadpodman-9bccb0f091a82656593a069891f143e78a8719e9.tar.gz
podman-9bccb0f091a82656593a069891f143e78a8719e9.tar.bz2
podman-9bccb0f091a82656593a069891f143e78a8719e9.zip
Merge pull request #6858 from vrothberg/fix-6793
auto-update: clarify systemd-unit requirements
-rw-r--r--cmd/podman/auto-update.go2
-rw-r--r--docs/source/markdown/podman-auto-update.1.md3
2 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/auto-update.go b/cmd/podman/auto-update.go
index 11433bc25..eed211ff1 100644
--- a/cmd/podman/auto-update.go
+++ b/cmd/podman/auto-update.go
@@ -16,6 +16,8 @@ var (
autoUpdateDescription = `Auto update containers according to their auto-update policy.
Auto-update policies are specified with the "io.containers.autoupdate" label.
+ Containers are expected to run in systemd units created with "podman-generate-systemd --new",
+ or similar units that create new containers in order to run the updated images.
Note that this command is experimental. Please refer to the podman-auto-update(1) man page for details.`
autoUpdateCommand = &cobra.Command{
Use: "auto-update [flags]",
diff --git a/docs/source/markdown/podman-auto-update.1.md b/docs/source/markdown/podman-auto-update.1.md
index f37280cda..b6941362a 100644
--- a/docs/source/markdown/podman-auto-update.1.md
+++ b/docs/source/markdown/podman-auto-update.1.md
@@ -23,6 +23,9 @@ Note that `podman auto-update` relies on systemd and requires a fully-qualified
This enforcement is necessary to know which image to actually check and pull.
If an image ID was used, Podman would not know which image to check/pull anymore.
+Moreover, the systemd units are expected to be generated with `podman-generate-systemd --new`, or similar units that create new containers in order to run the updated images.
+Systemd units that start and stop a container cannot run a new image.
+
## OPTIONS
**--authfile**=*path*