Skip to content

Commit

Permalink
fix: docker desktop startup failure (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
season886 authored Oct 7, 2023
1 parent 68d7171 commit b972460
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ _EOC_
/usr/bin/apisix init
/usr/bin/apisix init_etcd
fi

# For versions below 3.5.0 whose conf_server has not been removed.
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
5 changes: 5 additions & 0 deletions debian-dev/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ _EOC_
/usr/bin/apisix init
/usr/bin/apisix init_etcd
fi

# For versions below 3.5.0 whose conf_server has not been removed.
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
5 changes: 5 additions & 0 deletions debian/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ _EOC_
/usr/bin/apisix init
/usr/bin/apisix init_etcd
fi

# For versions below 3.5.0 whose conf_server has not been removed.
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
5 changes: 5 additions & 0 deletions redhat/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ _EOC_
/usr/bin/apisix init
/usr/bin/apisix init_etcd
fi

# For versions below 3.5.0 whose conf_server has not been removed.
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 b972460

Please sign in to comment.