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>
This commit is contained in:
Matthew Heon 2019-02-14 09:40:49 -05:00 committed by Matthew Heon
parent 8ec9eb0a76
commit b5653a7f36
1 changed files with 0 additions and 3 deletions

View File

@ -397,9 +397,6 @@ func parseCreateOpts(ctx context.Context, c *cliconfig.PodmanCommand, runtime *l
tty := c.Bool("tty") 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 { if c.Flag("cpu-period").Changed && c.Flag("cpus").Changed {
return nil, errors.Errorf("--cpu-period and --cpus cannot be set together") return nil, errors.Errorf("--cpu-period and --cpus cannot be set together")
} }