diff --git a/centos/docker-entrypoint.sh b/centos/docker-entrypoint.sh index d3deef62..a07ad171 100755 --- a/centos/docker-entrypoint.sh +++ b/centos/docker-entrypoint.sh @@ -45,6 +45,10 @@ _EOC_ /usr/bin/apisix init /usr/bin/apisix init_etcd fi + + if [ -e "/usr/local/apisix/conf/config_listen.sock" ]; then + rm -f "/usr/local/apisix/conf/config_listen.sock" + fi exec /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;' fi diff --git a/debian-dev/docker-entrypoint.sh b/debian-dev/docker-entrypoint.sh index a451a1c5..4599788c 100755 --- a/debian-dev/docker-entrypoint.sh +++ b/debian-dev/docker-entrypoint.sh @@ -45,6 +45,10 @@ _EOC_ /usr/bin/apisix init /usr/bin/apisix init_etcd fi + + if [ -e "/usr/local/apisix/conf/config_listen.sock" ]; then + rm -f "/usr/local/apisix/conf/config_listen.sock" + fi exec /usr/local/openresty-debug/bin/openresty -p /usr/local/apisix -g 'daemon off;' fi diff --git a/redhat/docker-entrypoint.sh b/redhat/docker-entrypoint.sh index d3deef62..a07ad171 100755 --- a/redhat/docker-entrypoint.sh +++ b/redhat/docker-entrypoint.sh @@ -45,6 +45,10 @@ _EOC_ /usr/bin/apisix init /usr/bin/apisix init_etcd fi + + if [ -e "/usr/local/apisix/conf/config_listen.sock" ]; then + rm -f "/usr/local/apisix/conf/config_listen.sock" + fi exec /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;' fi