diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2017-11-27 21:05:11 +0000 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-11-28 15:01:20 +0000 |
commit | ab62fe17ff7910a4727e07f6d075b425185a5860 (patch) | |
tree | 833e400459259dd20545418a2c90a4fe0b3ee715 /cmd/kpod/create.go | |
parent | 342ce4db50ed89605bbdd5f8ac30c3db08e15a7e (diff) | |
download | podman-ab62fe17ff7910a4727e07f6d075b425185a5860.tar.gz podman-ab62fe17ff7910a4727e07f6d075b425185a5860.tar.bz2 podman-ab62fe17ff7910a4727e07f6d075b425185a5860.zip |
Implement kpod --rm code
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #81
Approved by: baude
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"), |