Skip to content

Commit 12a9e77

Browse files
Bruno Grandemr-c
Bruno Grande
authored andcommitted
Raise error is socket is *not* available
1 parent c69221b commit 12a9e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool-in-docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
if [ -S /var/run/docker.sock ] && [ -z "$DOCKER_HOST" ]; then
2+
if ! [ -S /var/run/docker.sock ] && [ -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'
55
# shellcheck disable=SC2016

0 commit comments

Comments
 (0)