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 Answer
3
Accepted Answer

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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions