Hi everyone,
This method for propagating mounts from Linux containers to the host using
shared mounts works in Ubuntu, but not CoreOS currently. Would it be possible to make it work in CoreOS? The use case is mounting non-NFS network attached storage into unprivileged containers, more detail is given in an
earlier question. A test case is:
# On the host
mkdir /home/core/shared
sudo mount --bind /home/core/shared /home/core/shared
sudo mount --make-unbindable /home/core/shared
sudo mount --make-shared /home/core/shared
sudo mkdir /home/core/shared/test
sudo docker run -i -t --privileged -v /home/core/shared/test:/shared ubuntu:12.04 /bin/bash
# In the container
mkdir /shared/usr
mount --bind /usr /shared/usr
# On the host, /home/core/shared/test/usr "should" now contain local, lib, bin, etc.
Many thanks,
Anand