Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
runtime: Fix /var/lib/vc/sbs/${sid} dir residual
Browse files Browse the repository at this point in the history
Fixes: #2921

Signed-off-by: Shukui Yang <keloyangsk@gmail.com>
  • Loading branch information
keloyang committed Sep 1, 2020
1 parent a1d993f commit eb142aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion virtcontainers/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,10 @@ func (s *Sandbox) Delete() error {
}

s.agent.cleanup(s)

vcStore, err := store.NewVCSandboxStore(s.ctx, s.id)
if err == nil {
vcStore.Delete()
}
return s.newStore.Destroy(s.id)
}

Expand Down

0 comments on commit eb142aa

Please sign in to comment.