Test propagation of bind mount from docker container to host

Fabian Peter Hammerle 9e1009120f Revert "tee mount & user namespace" 5 years ago
Dockerfile 9e1009120f Revert "tee mount & user namespace" 5 years ago
README.md fe7c867ef3 replace mountinfo with findmnt 5 years ago

README.md

Test propagation of bind mount.

docker run --rm --init \
    --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
    -v /tmp/prop-test-host:/prop-test/vol:rshared \
    --name mount-propagation-test fphammerle/mount-propagation-test
cat /tmp/prop-test-host/mp/mountinfo-container

You may need to disable user namespace remapping --userns host due to https://github.com/moby/moby/issues/36472#issuecomment-480388275 .