'how to prevent error "no space left on device" when deploying multi container docker application on AWS beanstalk?

I have a multi container docker application, which contains a java spring application, and a couple of vue.js applications. I use AWS Beanstalk as I don't have experience setting up directly an EC2 instance, AWS Beanstalk seems the simpler way to deploy a multi container docker application to me.

But after making some changes to my application, when I try to deploy it on the AWS beanstalk console, I get always an error "no space left on device". Could you give me some advice on how to fix this space issue?

Thank you.



Solution 1:[1]

Just changing the volume size is not enough. You also have to extend the associated partition in your instance.

The procedure is described in aws docs https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marcin