Skip to content

Commit

Permalink
fix container fail after ttl timeout in detach mode
Browse files Browse the repository at this point in the history
Signed-off-by: abushwang <[email protected]>
  • Loading branch information
wswsmao committed Dec 10, 2024
1 parent 0b5689f commit a19bbc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/containerd-stargz-grpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ func main() {
log.G(ctx).WithError(err).Fatalf("failed to serve snapshotter")
}

if cleanup {
// In detach mode, rs is taken over by fusemanager
// fusemanager will clean mount dir before exit
if cleanup && !*detachFuseManager {
log.G(ctx).Debug("Closing the snapshotter")
rs.Close()
}
Expand Down

0 comments on commit a19bbc9

Please sign in to comment.