Added new flags to 'podman generate systemd' to change the unit name prefix

--container-prefix <string> - default 'container'
Systemd unit name prefix for containers

--pod-prefix <string> - default 'pod'
Systemd unit name prefix for pods

--separator <string> - default '-'
Systemd unit name seperator between name/id and prefix

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
Luap99
2020-05-21 17:36:41 +02:00
parent 72e880351a
commit e704f1362a
6 changed files with 120 additions and 4 deletions

View File

@ -2838,7 +2838,10 @@ _podman_generate_systemd() {
local options_with_args="
--restart-policy
-t
--time"
--time
--container-prefix
--pod-prefix
--separator"
local boolean_options="
-h