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.
2 parents e15381b + 517d594 commit f513d5aCopy full SHA for f513d5a
app/entrypoint.sh
@@ -14,6 +14,11 @@ function print_version {
14
function check_docker_socket {
15
if [[ $DOCKER_HOST == unix://* ]]; then
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
if [[ ! -S $socket_file ]]; then
23
echo "Error: you need to share your Docker host socket with a volume at $socket_file" >&2
24
echo "Typically you should run your container with: '-v /var/run/docker.sock:$socket_file:ro'" >&2
0 commit comments