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 Antwort
3
Akzeptierte Antwort

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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen