Can't Delete Directory After Been Mounted To A Container

I am using my old MacBook as a small server to run some docker containers. However I found a weird bug that I can't delete the directory after it has been mounted to a container. It shows resource busy, even can't deleted it in command line with rm -rf.

The reason is Docker Desktop default use VirtioFS with Vitrualization Framework. This thread will keep all files in the mounted directory open, so you can't delete it.

docker_setting

Just use gRPC Fuse instead of VirtioFS will solve this problem.


← Back to all posts