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

已提問 1 年前檢視次數 518 次
1 個回答
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

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南