Docker|Docker Volume Propagation

root@mesos002:~# mount --make-shared /
root@mesos002:~# docker run --privileged -ti-v/root/mnt-source:/root/mnt-dest:shared --cap-add SYS_ADMIN fedora bash
[root@6795fe0ad7d6 /]# findmnt -o TARGET,PROPAGATION /root/mnt-dest
TARGETPROPAGATION
/root/mnt-dest shared
[root@6795fe0ad7d6 /]#mkdir -p /root/mnt-dest/mnt1
[root@6795fe0ad7d6 /]# cd /root/mnt-dest
【Docker|Docker Volume Propagation】[root@6795fe0ad7d6 mnt-dest]# mount --bind mnt1 mnt1
root@mesos002:~# findmnt /root/mnt-source/mnt1

TARGETSOURCEFSTYPE OPTIONS
/root/mnt-source/mnt1 /dev/disk/by-uuid/017a354d-62b9-4ca2-aca2-12df8da6c82e[/root/mnt-source/mnt1] ext4rw,relatime,errors=remount-ro,data

    推荐阅读