-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failure to bind mount a path with a comma in the name #5959
Comments
Escaping the comma from the shell would not do the same thing once interpreted by Singularity. It might be possible to add an internal escape, but I'll leave decision that up to @cclerget or @ikaneshiro. |
Hello, This is a templated response that is being sent out to all open issues. We are working hard on 'rebuilding' the Singularity community, and a major task on the agenda is finding out what issues are still outstanding. Please consider the following:
Thanks, |
Hi @carterpeel , I am afraid the answers are no, yes and yes. A proper fix will also be a likely fix for #5923 as well, so more than one bird with that stone. Yours, Steffen |
…ng syntax: - `singularity shell -B /tmp/comma\\,separated_dir:/data image` - `singularity shell -B "/tmp/comma\,separated_dir":/data image` - `singularity shell -B /tmp/colon\\:sep_dir:/data image` - `singularity shell -B /tmp/"colon\:sep_dir":/data image` - Fixes apptainer#5923 - Fixes apptainer#5959
…ng syntax: - `singularity shell -B /tmp/comma\\,separated_dir:/data image` - `singularity shell -B "/tmp/comma\,separated_dir":/data image` - `singularity shell -B /tmp/colon\\:sep_dir:/data image` - `singularity shell -B /tmp/"colon\:sep_dir":/data image` - Fixes apptainer#5923 - Fixes apptainer#5959
…ng syntax: - `singularity shell -B /tmp/comma\\,separated_dir:/data image` - `singularity shell -B "/tmp/comma\,separated_dir":/data image` - `singularity shell -B /tmp/colon\\:sep_dir:/data image` - `singularity shell -B /tmp/"colon\:sep_dir":/data image` - Fixes apptainer#5923 - Fixes apptainer#5959
…ng syntax: - `singularity shell -B /tmp/comma\\,separated_dir:/data image` - `singularity shell -B "/tmp/comma\,separated_dir":/data image` - `singularity shell -B /tmp/colon\\:sep_dir:/data image` - `singularity shell -B /tmp/"colon\:sep_dir":/data image` - Fixes apptainer#5923 - Fixes apptainer#5959
…ng syntax: - `singularity shell -B /tmp/comma\\,separated_dir:/data image` - `singularity shell -B "/tmp/comma\,separated_dir":/data image` - `singularity shell -B /tmp/colon\\:sep_dir:/data image` - `singularity shell -B /tmp/"colon\:sep_dir":/data image` - Fixes apptainer#5923 - Fixes apptainer#5959
Version of Singularity:
Expected behavior
I need to bind-mound a directory into the container that has a comma in the name:
singularity run -B "foo,bar:/data" docker://alpine ls /data
Fails with error
mount source /.../bar doesn't exist
, since only the first part of the path is used.A similar issue is reported in #5923 with colon in the name.
Actual behavior
with error
mount source /.../bar doesn't exist
. Docs say-B
takesa comma-delimited string of bind path specifications
, but I couldn't find how to quote the comma in the filename. I triedfoo\,bar
,'foo,bar'
but no luck. Ideas ?Steps to reproduce this behavior
See above.
What OS/distro are you running
How did you install Singularity
Installed from Debian packages.
The text was updated successfully, but these errors were encountered: