Docker Community Forums

Share and learn in the Docker community.

Is it possible to use mount propagation to the host machine with Docker for Mac?

(Ross Boucher) #1

Apologies upfront that I’m not completely sure how mount propagation works. Playing around with it in my VM, a requirement for mounting something like -v /foo/foo:shared is first creating your own mount and marking it as shared: mount -o bind /foo /foo; mount --make-shared /foo.

OS X doesn’t seem to support bind mounts? Given that, is there any way to get shared propagation working between OS X and a container? As an alternative, is there any way to do mount propagation with --volumes-from?

Just a note about what I’m trying to do: I have a custom FUSE filesystem, and I’d like to run the process in a container, and export the filesystem to other containers.