From bc7163ebb51bba2620d005601e1c740ff4d860a4 Mon Sep 17 00:00:00 2001 From: RoboMagus Date: Mon, 27 Sep 2021 14:39:34 +0200 Subject: [PATCH] Conditionally check accessibility of docker socket to avoid issues with using DOCKER_HOST --- docker-entrypoint | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint b/docker-entrypoint index 2696ee5..4e421b4 100755 --- a/docker-entrypoint +++ b/docker-entrypoint @@ -259,7 +259,10 @@ EOF } -ensure_docker_socket_accessible +if [ -z "$DOCKER_HOST" ]; then + echo "Testing docker socket accessibility" + ensure_docker_socket_accessible +fi start_app() { get_config