diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-02 14:28:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 14:28:25 -0400 |
commit | 819a4e02888b92c3120f513f398993a165f69028 (patch) | |
tree | ef5fdac26037186d025ef002ff907166eb77ee9e /cmd/podman/common/createparse.go | |
parent | 1132bcfeb5a8dca56d99c50882abc6e7775ac897 (diff) | |
parent | 1492f3c936a0f6180db61a6500371aceebc37e39 (diff) | |
download | podman-819a4e02888b92c3120f513f398993a165f69028.tar.gz podman-819a4e02888b92c3120f513f398993a165f69028.tar.bz2 podman-819a4e02888b92c3120f513f398993a165f69028.zip |
Merge pull request #7895 from zhangguanzhang/run-ctr-restartPolicy-with-rm
[podman run] --rm option shold conflicts with --restart
Diffstat (limited to 'cmd/podman/common/createparse.go')
-rw-r--r-- | cmd/podman/common/createparse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/createparse.go b/cmd/podman/common/createparse.go index 059f9050f..09ee5aa0c 100644 --- a/cmd/podman/common/createparse.go +++ b/cmd/podman/common/createparse.go @@ -10,7 +10,7 @@ import ( func (c *ContainerCLIOpts) validate() error { var () if c.Rm && c.Restart != "" && c.Restart != "no" { - return errors.Errorf("the --rm option conflicts with --restart") + return errors.Errorf(`the --rm option conflicts with --restart, when the restartPolicy is not "" and "no"`) } if _, err := util.ValidatePullType(c.Pull); err != nil { |