I have a container that uses fuse to mount a custom fuse volume. It works well and is accessible from within the container. But, I want to make the mounted fuse volume accessible from my Mac host.
In the File Sharing tab in Docker, I added /test, then tried to do the following.
docker run -it --rm --cap-add SYS_ADMIN --cap-add MKNOD --device=/dev/fuse --security-opt apparmor:unconfined -v /test:/test:shared python:2.7.12 bash
But, Docker says it’s not a shared mount.
docker: Error response from daemon: linux mounts: Path /test is mounted on /test but it is not a shared mount.
How do I get this to work? It’s not obvious to me how to make a shared mount from my Mac through Moby and to my container.