File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,11 @@ function print_version {
14
14
function check_docker_socket {
15
15
if [[ $DOCKER_HOST == unix://* ]]; then
16
16
socket_file=${DOCKER_HOST# unix:// }
17
- if [[ ! -r $socket_file ]]; then
18
- echo " Error: Docker host socket at $socket_file is not readable. Please check user permissions" >&2
19
- echo " If you are in a SELinux environment, try using: '-v /var/run/docker.sock:$socket_file :z'" >&2
20
- exit 1
21
- fi
22
17
if [[ ! -S $socket_file ]]; then
18
+ if [[ ! -r $socket_file ]]; then
19
+ echo " Warning: Docker host socket at $socket_file might not be readable. Please check user permissions" >&2
20
+ echo " If you are in a SELinux environment, try using: '-v /var/run/docker.sock:$socket_file :z'" >&2
21
+ fi
23
22
echo " Error: you need to share your Docker host socket with a volume at $socket_file " >&2
24
23
echo " Typically you should run your container with: '-v /var/run/docker.sock:$socket_file :ro'" >&2
25
24
exit 1
You can’t perform that action at this time.
0 commit comments