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

질문됨 일 년 전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

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠