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 518e4a7 commit 3fc4b73Copy full SHA for 3fc4b73
cwltool-in-docker.sh
@@ -1,7 +1,8 @@
1
#!/usr/bin/env sh
2
-if [ ! -S /var/run/docker.sock ]; then
+if [ \( ! -S /var/run/docker.sock \) -a \( -z "$DOCKER_HOST" \) ]; then
3
>&2 echo 'ERROR: cwltool cannot work inside a container without access to docker'
4
>&2 echo 'Launch the container with the option -v /var/run/docker.sock:/var/run/docker.sock'
5
+ >&2 echo 'or launch the container with the option to set $DOCKER_HOST'
6
exit 1
7
elif [ "$PWD" = '/error' ]; then
8
>&2 echo 'ERROR: cwltool cannot work without access to the current path'
0 commit comments