containerd / rust-extensions

Rust crates to extend containerd
https://containerd.io
Apache License 2.0
172 stars 66 forks source link

Unmount the mount point of the container when the container is deleted. #291

Open zzzzzzzzzy9 opened 1 month ago

zzzzzzzzzy9 commented 1 month ago

Unmount the mount point of the container when the container is deleted.

Shim will mount the rootfs on host, so when container is deleted and the shim is dead, shim should unmount the mountpoint who has been mounted by shim.

mxpv commented 1 month ago

I guess same suggestion here as in https://github.com/containerd/rust-extensions/pull/305#discussion_r1702070554. There is a lot of linux specific stuff. Let's move those to a separate file to have less linux targets?