diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-25 06:46:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 06:46:17 -0400 |
commit | 1077d2d0b72d027a01080c0d3ebdb7d99a969661 (patch) | |
tree | fd6b32e485b0985cff943a2084258fd991a9ec35 /cmd | |
parent | 3fec749f56627fa955f8529392be2c1edcdab452 (diff) | |
parent | e704f1362abc416786076a932d8e2ca930b9fa2e (diff) | |
download | podman-1077d2d0b72d027a01080c0d3ebdb7d99a969661.tar.gz podman-1077d2d0b72d027a01080c0d3ebdb7d99a969661.tar.bz2 podman-1077d2d0b72d027a01080c0d3ebdb7d99a969661.zip |
Merge pull request #6321 from Luap99/podman-generate-systemd-unit-prefix
Allow to change the generated systemd unit name prefix
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/generate/systemd.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/generate/systemd.go b/cmd/podman/generate/systemd.go index 20d9748d4..75031e070 100644 --- a/cmd/podman/generate/systemd.go +++ b/cmd/podman/generate/systemd.go @@ -39,6 +39,9 @@ func init() { flags.UintVarP(&systemdTimeout, "time", "t", containerConfig.Engine.StopTimeout, "Stop timeout override") flags.StringVar(&systemdOptions.RestartPolicy, "restart-policy", "on-failure", "Systemd restart-policy") flags.BoolVarP(&systemdOptions.New, "new", "", false, "Create a new container instead of starting an existing one") + flags.StringVar(&systemdOptions.ContainerPrefix, "container-prefix", "container", "Systemd unit name prefix for containers") + flags.StringVar(&systemdOptions.PodPrefix, "pod-prefix", "pod", "Systemd unit name prefix for pods") + flags.StringVar(&systemdOptions.Separator, "separator", "-", "Systemd unit name seperator between name/id and prefix") flags.SetNormalizeFunc(utils.AliasFlags) } |