summaryrefslogtreecommitdiff
path: root/cmd/podman/common.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-12-17 16:14:11 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2018-12-18 12:50:50 -0500
commit59635cd1863a7da7a198e14c4d48464eef15aa00 (patch)
tree3f99f71a04d565ed103c2a75742180b7332c837c /cmd/podman/common.go
parent3ec11ac77c54acbe5d1b66918434e2d4db3ca3cf (diff)
downloadpodman-59635cd1863a7da7a198e14c4d48464eef15aa00.tar.gz
podman-59635cd1863a7da7a198e14c4d48464eef15aa00.tar.bz2
podman-59635cd1863a7da7a198e14c4d48464eef15aa00.zip
Add information on --restart
We need to recommend that users use Systemd unit files if they want the container to restart automatically. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/common.go')
-rw-r--r--cmd/podman/common.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go
index c4016698a..8404a29b8 100644
--- a/cmd/podman/common.go
+++ b/cmd/podman/common.go
@@ -422,6 +422,10 @@ var createFlags = []cli.Flag{
Name: "read-only",
Usage: "Make containers root filesystem read-only",
},
+ cli.StringFlag{
+ Name: "restart",
+ Usage: "Restart is not supported. Please use a systemd unit file for restart",
+ },
cli.BoolFlag{
Name: "rm",
Usage: "Remove container (and pod if created) after exit",