mirror of https://github.com/containers/podman.git
Merge pull request #2631 from giuseppe/fix-race-rm
rm: fix cleanup race
This commit is contained in:
commit
7426d4fbbe
|
|
@ -166,6 +166,10 @@ func runCmd(c *cliconfig.RunValues) error {
|
|||
exitCode = int(ecode)
|
||||
}
|
||||
|
||||
if c.IsSet("rm") {
|
||||
runtime.RemoveContainer(ctx, ctr, false, true)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue