summaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-06 15:40:55 +0200
committerGitHub <noreply@github.com>2022-09-06 15:40:55 +0200
commit4e06aa37714ecb5b38e189cf85f4aec9b1e6399a (patch)
tree8b7d0545f9946cddb01d98050063e0422fbfe8ac /docs/source
parent34b0be6cffef86ff54846e5548d1accf3fefc272 (diff)
parenta9a411f8a83ab5644582b8929a32abacc18a17fc (diff)
downloadpodman-4e06aa37714ecb5b38e189cf85f4aec9b1e6399a.tar.gz
podman-4e06aa37714ecb5b38e189cf85f4aec9b1e6399a.tar.bz2
podman-4e06aa37714ecb5b38e189cf85f4aec9b1e6399a.zip
Merge pull request #15584 from sstosh/generate-systemd-env
Add generate systemd -e/--env option
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/markdown/podman-generate-systemd.1.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-generate-systemd.1.md b/docs/source/markdown/podman-generate-systemd.1.md
index 88dff2a45..1ada6bd3f 100644
--- a/docs/source/markdown/podman-generate-systemd.1.md
+++ b/docs/source/markdown/podman-generate-systemd.1.md
@@ -44,6 +44,12 @@ User-defined dependencies will be appended to the generated unit file, but any e
Set the systemd unit name prefix for containers. The default is *container*.
+#### **--env**, **-e**=*env*
+
+Set environment variables to the systemd unit files.
+
+If an environment variable is specified without a value, Podman will check the host environment for a value and set the variable only if it is set on the host. As a special case, if an environment variable ending in __*__ is specified without a value, Podman will search the host environment for variables starting with the prefix and will add those variables to the systemd unit files.
+
#### **--files**, **-f**
Generate files instead of printing to stdout. The generated files are named {container,pod}-{ID,name}.service and will be placed in the current working directory.