From b5653a7f3644fe62f0b50b2193ef3010e2b399dd Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 14 Feb 2019 09:40:49 -0500 Subject: 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 --- cmd/podman/create.go | 3 --- 1 file changed, 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") } -- cgit v1.2.3-54-g00ecf