Sending a request to http://localhost:9080 will result in an error. I'm running apisix in docker.
Error
2024/09/01 04:11:33 [error] 33#33: *396 [lua] init.lua:889: phase_func(): failed to connect to the unix socket unix:/usr/local/apisix/conf/apisix-1.sock: no such file or directory
Dockerfile
FROM golang:1.22.5 AS plugin-builder
WORKDIR /builder
COPY go-runner .
RUN CGO_ENABLED=0 go build .
FROM apache/apisix:3.9.1-debian
ENV APISIX_STAND_ALONE=true
EXPOSE 9080 9180 9091 9443 9092
COPY apisix.yaml /usr/local/apisix/conf/apisix.yaml
COPY --from=plugin-builder /builder/go-runner /usr/local/apisix-go-plugin-runner/go-runner
OS (cmd: uname -a): Darwin sanghyeonkimui-MacBookPro.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
Issue description
Sending a request to http://localhost:9080 will result in an error. I'm running apisix in docker.
Error
Dockerfile
apisix.yaml
Furthermore, when I checked
/usr/local/apisix/config
in Docker, there is no sock file and no environment variable namedAPISIX_LISTEN_ADDRESS
.Environment
uname -a
): Darwin sanghyeonkimui-MacBookPro.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64