mirror of https://github.com/containers/podman.git
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:
parent
8ec9eb0a76
commit
b5653a7f36
|
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue