oci: ignore non existing containers on delete
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
fbc5e49a60
commit
2ddc062bbe
3 changed files with 4 additions and 3 deletions
|
@ -510,7 +510,8 @@ func (r *Runtime) StopContainer(c *Container, timeout int64) error {
|
|||
func (r *Runtime) DeleteContainer(c *Container) error {
|
||||
c.opLock.Lock()
|
||||
defer c.opLock.Unlock()
|
||||
return utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.Path(c), "delete", c.name)
|
||||
_, err := utils.ExecCmd(r.Path(c), "delete", "--force", c.name)
|
||||
return err
|
||||
}
|
||||
|
||||
// UpdateStatus refreshes the status of the container.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue