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 年前

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

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

回答問題指南