No space left on device when deploy ECS Fargate Service with CDK

0

I try to deploy my node application with ecs fargate service using cdk and after I added some packages in my application, get this error during the build process (yarn install) of my dockerfile:

 error An unexpected error occurred: "ENOSPC: no space left on device, copyfile.....

Do you have some idea?

PS. in CDK I use: ApplicationLoadBalancedFargateService

1개 답변
3
수락된 답변

It sounds like you are building your app as a Docker image. If so, the CDK is using Docker on your local machine to build the image. The Docker sub-system on your local machine may have run out of space. You can cleanup your local Docker system with prune commands. Try:

docker system prune --all

This will remove all unused Docker objects (containers, images, networks, volumes, etc...)

Here is some more information on the topic:

https://docs.docker.com/config/pruning/

AWS
David_M
답변함 2년 전

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

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

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