diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 4aa71ded..bd8f0240 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -46,7 +46,7 @@ if [[ "$1" == "kong" ]]; then # remove all dangling sockets in $PREFIX dir before starting Kong LOGGED_SOCKET_WARNING=0 - for localfile in "$PREFIX"/*; do + for localfile in "$PREFIX"/* "$PREFIX"/sockets/*; do if [ -S "$localfile" ]; then if (( LOGGED_SOCKET_WARNING == 0 )); then printf >&2 'WARN: found dangling unix sockets in the prefix directory ' diff --git a/ubuntu/docker-entrypoint.sh b/ubuntu/docker-entrypoint.sh index 4aa71ded..bd8f0240 100755 --- a/ubuntu/docker-entrypoint.sh +++ b/ubuntu/docker-entrypoint.sh @@ -46,7 +46,7 @@ if [[ "$1" == "kong" ]]; then # remove all dangling sockets in $PREFIX dir before starting Kong LOGGED_SOCKET_WARNING=0 - for localfile in "$PREFIX"/*; do + for localfile in "$PREFIX"/* "$PREFIX"/sockets/*; do if [ -S "$localfile" ]; then if (( LOGGED_SOCKET_WARNING == 0 )); then printf >&2 'WARN: found dangling unix sockets in the prefix directory '