We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 869b3ca commit fad717dCopy full SHA for fad717d
cwltool/singularity.py
@@ -47,7 +47,7 @@ def _singularity_supports_userns() -> bool:
47
stdout=DEVNULL,
48
universal_newlines=True,
49
).communicate(timeout=60)[1]
50
- _USERNS = "No valid /bin/sh" in result
+ _USERNS = "No valid /bin/sh" in result or "/bin/sh doesn't exist in container" in result
51
except TimeoutExpired:
52
_USERNS = False
53
return _USERNS
@@ -388,11 +388,12 @@ def create_runtime(
388
"--quiet",
389
"exec",
390
"--contain",
391
- "--pid",
392
"--ipc",
393
]
394
if _singularity_supports_userns():
395
runtime.append("--userns")
+ else:
396
+ runtime.append("--pid")
397
if is_version_3_1_or_newer():
398
runtime.append("--home")
399
runtime.append(
0 commit comments