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

Implement support for Docker in rootless mode #22

Open mfhepp opened 7 months ago

mfhepp commented 7 months ago

Basically, implement the lessons learned in

https://github.com/mamba-org/micromamba-docker/issues/407#issuecomment-2088523507

This will ideally be done after a cleanup that will remove the -D option and externalize the notebooks feature (and replace build.sh by a Makefile).

mfhepp commented 7 months ago

Check for rootless: https://sthbrx.github.io/blog/2023/04/05/detecting-rootless-docker/

mfhepp commented 7 months ago

Check for sudo: https://stackoverflow.com/questions/64848619/how-to-check-if-user-has-sudo-privileges-inside-the-bash-script