containerd / rust-extensions

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

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

Open zzzzzzzzzy9 opened 4 months ago

zzzzzzzzzy9 commented 4 months 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 3 months 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?