Skip to content

Commit 3fc4b73

Browse files
Tomoya Tanjomr-c
authored andcommitted
Fix cwltool-in-docker.sh to accept DOCKER_HOST
1 parent 518e4a7 commit 3fc4b73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool-in-docker.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env sh
2-
if [ ! -S /var/run/docker.sock ]; then
2+
if [ \( ! -S /var/run/docker.sock \) -a \( -z "$DOCKER_HOST" \) ]; then
33
>&2 echo 'ERROR: cwltool cannot work inside a container without access to docker'
44
>&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'
56
exit 1
67
elif [ "$PWD" = '/error' ]; then
78
>&2 echo 'ERROR: cwltool cannot work without access to the current path'

0 commit comments

Comments
 (0)