summaryrefslogtreecommitdiff
path: root/cmd/podman/common.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-10-07 14:02:54 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-10-09 23:39:18 +0200
commit5963077e93937046b6b13d6f1da8c1f932c0e6ff (patch)
tree9666910e2f6d3c25dcafe0f8dbb35f01027e36db /cmd/podman/common.go
parent3ba3e1c7510d1780b6527a4aa52e40ac2c5b576a (diff)
downloadpodman-5963077e93937046b6b13d6f1da8c1f932c0e6ff.tar.gz
podman-5963077e93937046b6b13d6f1da8c1f932c0e6ff.tar.bz2
podman-5963077e93937046b6b13d6f1da8c1f932c0e6ff.zip
cli: support --systemd=always
it enforces the systemd mode also when the command name doesn't match /usr/sbin/init or systemd. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman/common.go')
-rw-r--r--cmd/podman/common.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go
index 2a3f8f3ad..e93586b62 100644
--- a/cmd/podman/common.go
+++ b/cmd/podman/common.go
@@ -455,9 +455,9 @@ func getCreateFlags(c *cliconfig.PodmanCommand) {
"sysctl", []string{},
"Sysctl options (default [])",
)
- createFlags.Bool(
- "systemd", cliconfig.DefaultSystemD,
- "Run container in systemd mode if the command executable is systemd or init",
+ createFlags.String(
+ "systemd", "true",
+ `Run container in systemd mode ("true"|"false"|"always" (default "true")`,
)
createFlags.StringArray(
"tmpfs", []string{},