summaryrefslogtreecommitdiff
path: root/cmd/podman/create.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-02-14 09:40:49 -0500
committerMatthew Heon <matthew.heon@pm.me>2019-02-14 15:53:53 -0500
commitb5653a7f3644fe62f0b50b2193ef3010e2b399dd (patch)
tree71343355b0fe201ba7ac9cacf80bd700a5d90ab3 /cmd/podman/create.go
parent8ec9eb0a7617b6c2db6ed092ab741552dc7cba02 (diff)
downloadpodman-b5653a7f3644fe62f0b50b2193ef3010e2b399dd.tar.gz
podman-b5653a7f3644fe62f0b50b2193ef3010e2b399dd.tar.bz2
podman-b5653a7f3644fe62f0b50b2193ef3010e2b399dd.zip
Enable --rm with --detach
We can now safely remove detached containers as --rm handling has moved into the cleanup process. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'cmd/podman/create.go')
-rw-r--r--cmd/podman/create.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go
index 392163424..adfae25c1 100644
--- a/cmd/podman/create.go
+++ b/cmd/podman/create.go
@@ -397,9 +397,6 @@ func parseCreateOpts(ctx context.Context, c *cliconfig.PodmanCommand, runtime *l
tty := c.Bool("tty")
- if c.Bool("detach") && c.Bool("rm") {
- return nil, errors.Errorf("--rm and --detach cannot be specified together")
- }
if c.Flag("cpu-period").Changed && c.Flag("cpus").Changed {
return nil, errors.Errorf("--cpu-period and --cpus cannot be set together")
}