Skip to content

Commit

Permalink
Fix docker desktop startup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
season886 committed Sep 21, 2023
1 parent b02e57e commit 0c15d8b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions debian-dev/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions redhat/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c15d8b

Please sign in to comment.