Description
Is your feature request related to a problem? Please describe.
I cannot count how many times I've (accidentally) deleted my 'persistent' paths before as I'm always tempted to have those mapped folders within my project directory structure for tidiness reasons 😬
That's clearly my mistake above anything else but this also made evident some of the hidden benefits of docker volumes. I was wondering if we could get something similar.
Describe the solution you'd like
The solutions I propose is to use the ~/.singularity/volumes
as the default location to store named volumes.
This location could be overridden using a env var (let's say SINGULARITY_VOLUMES_PATH
).
The creation process would be something like singularity volume create|remove <volume_name>
And last but not least, when the user specified a bind path, if the name matches with an existing named volumes, it would map it to the location where the named volume resides like singularity run --bind <volume_name>:/my/path
Describe alternatives you've considered
I initially considered adding this feature to singularity-compose
but it was suggested to me that maybe having this feature in singularity
could be a better fit for the problem.
singularityhub/singularity-compose#50
Additional context
I was wondering if there is any interest in having such feature or if this is a no-go type of feature for whatever reason. I'm keen to assist on the development of that if necessary.