ECS Fargate Error when launching image, even on previously deployed and working images

0

Hi,

We have a docker image stored in ECR which we launch as an ECS task. Up until last friday everything was going fine. Since friday afternoon no deployments will successfully spin up - even if we redeploy a previously working image. No code has been changed that relates to docker at all. When I build the image locally it works. I am unable to ssh into the container as it is started up, fails launch then shuts down. Has something in ECS changed ?

The only error we get is "runc create failed: args must not be empty". This suggests an error in the docker file but its a very basic file :

FROM node:18

RUN ["mkdir", "-p", "/app"]
WORKDIR "/app"

ENV "NODE_ENV" "production"
ENV "PORT" 4000
EXPOSE 4000

RUN ["npm", "install", "--global", "npm@8.x.x"]

COPY ["package.json", "package-lock.json", "/app/"]
RUN ["npm", "install", "--only", "production"]

COPY ["dist", "/app/dist/"]

ENTRYPOINT ["node", "--enable-source-maps", "--trace-deprecation", "--trace-warnings", "./dist/index.js"]

thanks for any help

posta un anno fa518 visualizzazioni
1 Risposta
0

for the record we traced the issue back to the container used to build the image that is uploaded ecr. locking both the image and services used to a specific version number rather than latest has fixed our issue

con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande