mfhepp / py4docker

Template for running Python 3.x shell scripts and notebooks in a Docker container for isolation, security, and portability
MIT License
2 stars 0 forks source link

Improve bind mount in development mode #21

Open mfhepp opened 7 months ago

mfhepp commented 7 months ago

The run_script.sh script takes some lengths to detect and handle overlaps between the src/ and the output/ volumes, and problems caused by potential cycles.

It's likely better to use a dedicated mount point /mnt/output/ for the output directory. To be analyzed...

Also, a better understanding of Bind Propagation in Docker and Shared Subtrees in Linux will help: