You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I need some guidance.
I'm running air in a docker container, and since +/- a week ago I'm unable to start my containers with the error:
api-1 |
api-1 | __ _ ___
api-1 | / /\ ||||_)
api-1 | /_/--\ |_||_|\_ v1.61.1, built with Go go1.23.1
api-1 |
api-1 | 2024/11/13 13:56:59 too many open files
I did not add new files to the project.
If I start air from my terminal (using version v1.60.0), this error does not happen. However, I need the configuration on the compose for my application to work properly.
The same behavior happens using the cosmtrek/air image.
FROM golang:1.23 AS dev
WORKDIR /app
COPY go.mod go.sum ./
RUN go install github.com/air-verse/air@latest
COPY . .
FROM dev as api
ENV PORT=8000
EXPOSE ${PORT}
CMD ["air", "-c", ".air.toml"]
I tried the following golang images trying to figure out if this was an image issue:
golang:1.23
golang:1.23.2
golang:1.23.1
golang:1.23-alpine
golang:1.23-bullseye
Is there any guidance on how to debug to find the root cause of this issue?
The text was updated successfully, but these errors were encountered:
I don't run air in docker so I can't help you there, but I have experienced the "too many open files" problem in other projects. It is docker that outputs this message and it seems to have different cures depending on your host platform (Mac, windows, linux). Have you updated docker recently? A new version might behave differently, causing this error to appear all of a sudden.
Hi, I need some guidance.
I'm running air in a docker container, and since +/- a week ago I'm unable to start my containers with the error:
I did not add new files to the project.
If I start air from my terminal (using version v1.60.0), this error does not happen. However, I need the configuration on the compose for my application to work properly.
The same behavior happens using the cosmtrek/air image.
I tried the following golang images trying to figure out if this was an image issue:
Is there any guidance on how to debug to find the root cause of this issue?
The text was updated successfully, but these errors were encountered: