mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Merge pull request #2631 from giuseppe/fix-race-rm
rm: fix cleanup race
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user