Hi,
I've just starting playing around with Singularity as a way of potentially providing access to containerised workflows. I am however running into some issues with getting it working in my already Docker based production environment. I've got a simple example working in a similar test environment (though not exactly the same) but in principal, I know Singularity works fine from within Docker.
Anyway, the error I'm getting is:
singularity shell -C docker-anaconda27.img
ERROR : Could not virtualize mount namespace: Operation not permitted
ABORT : Retval = 255
I'm running as root at this stage to rule out any permission issue. A snip of the debug output doesn't make anything clearer:
VERBOSE [U=0,P=41280] pid.c:54:singularity_ns_pid_unshare() : Not virtualizing PID namespace by configuration
DEBUG [U=0,P=41280] config_parser.c:62:singularity_config_rewind(): Rewinding configuration file
DEBUG [U=0,P=41280] config_parser.c:107:singularity_config_get_bool(): Called singularity_config_get_bool(mount slave, 0)
DEBUG [U=0,P=41280] config_parser.c:80:singularity_config_get_value(): Called singularity_config_get_value(mount slave)
VERBOSE [U=0,P=41280] config_parser.c:91:singularity_config_get_value(): Got config key mount slave (= 'no')
DEBUG [U=0,P=41280] config_parser.c:118:singularity_config_get_bool(): Return singularity_config_get_bool(mount slave, 0) = 0
DEBUG [U=0,P=41280] privilege.c:147:singularity_priv_escalate(): Running as root, not changing privileges
DEBUG [U=0,P=41280] mnt.c:54:singularity_ns_mnt_unshare() : Virtualizing FS namespace
DEBUG [U=0,P=41280] mnt.c:61:singularity_ns_mnt_unshare() : Virtualizing mount namespace
ERROR [U=0,P=41280] mnt.c:63:singularity_ns_mnt_unshare() : Could not virtualize mount namespace: Operation not permitted
I have "allow pid ns = no" as this was also kicking up an error. I've tried setting all mount options in the conf to no.
The same command from the same installation works fine on the bare metal system.
Does anyone have any suggestions of what might be the issue or at least where to start looking?
Thanks very much,
Chris