Skip to content

Commit

Permalink
bugfix: not remove the metadata when remove container failed
Browse files Browse the repository at this point in the history
Signed-off-by: Starnop <[email protected]>
  • Loading branch information
starnop authored and allencloud committed Oct 23, 2018
1 parent 53bd896 commit a0376b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cri/v1alpha2/cri.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ func (c *CriManager) RunPodSandbox(ctx context.Context, r *runtime.RunPodSandbox
if retErr != nil {
if err := c.ContainerMgr.Remove(ctx, id, &apitypes.ContainerRemoveOptions{Volumes: true, Force: true}); err != nil {
logrus.Errorf("failed to remove container when running sandbox failed %q: %v", id, err)
return
}
// should not remove the sandbox container metadata from sandboxStore
// until it was removed by pouchd.
Expand Down

0 comments on commit a0376b3

Please sign in to comment.