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 Respuesta
3
Respuesta aceptada

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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas