summaryrefslogtreecommitdiff
path: root/cmd/podman/create.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-15 22:05:13 +0100
committerGitHub <noreply@github.com>2019-02-15 22:05:13 +0100
commit0a521e139faa0c7f1d9b6c9e647c350c1b7c4e04 (patch)
treefb8fbf81b0a296bf1561253e38d2538ae7e2c7c9 /cmd/podman/create.go
parent9c1b08fd79012c12d478edb13f6057a0414762db (diff)
parent2e6fff1f5eaa55ce88799447fdcb8a4145b789c3 (diff)
downloadpodman-0a521e139faa0c7f1d9b6c9e647c350c1b7c4e04.tar.gz
podman-0a521e139faa0c7f1d9b6c9e647c350c1b7c4e04.tar.bz2
podman-0a521e139faa0c7f1d9b6c9e647c350c1b7c4e04.zip
Merge pull request #2335 from mheon/enable_detach_rm
Enable --rm with --detach
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 7bfb070c7..e7efe7502 100644
--- a/cmd/podman/create.go
+++ b/cmd/podman/create.go
@@ -399,9 +399,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")
}