From a9a411f8a83ab5644582b8929a32abacc18a17fc Mon Sep 17 00:00:00 2001 From: Toshiki Sonoda Date: Fri, 2 Sep 2022 16:20:26 +0900 Subject: Add generate systemd -e/--env option -e/--env option sets environment variables to the systemd unit files. Fixes: #15523 Signed-off-by: Toshiki Sonoda --- docs/source/markdown/podman-generate-systemd.1.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/source') 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. -- cgit v1.2.3-54-g00ecf