diff options
Diffstat (limited to 'cmd/kpod/create.go')
-rw-r--r-- | cmd/kpod/create.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/kpod/create.go b/cmd/kpod/create.go index 2812874fa..c310ab831 100644 --- a/cmd/kpod/create.go +++ b/cmd/kpod/create.go @@ -355,6 +355,10 @@ func parseCreateOpts(c *cli.Context, runtime *libpod.Runtime) (*createConfig, er return nil, errors.Errorf("--pid %q is not valid", c.String("pid")) } + if c.Bool("detach") && c.Bool("rm") { + return nil, errors.Errorf("--rm and --detach can not be specified together") + } + config := &createConfig{ runtime: runtime, capAdd: c.StringSlice("cap-add"), |