Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker-compose Fails due to no space left on device

I'm trying to start some docker containers, but docker-compose up -d fails because no space left on device, i've tried cleaning all unused images, volumes and containers but i still have the same problem.
Here's the issue.
docker compose error

like image 513
youssef Elhanafi Avatar asked Nov 17 '25 02:11

youssef Elhanafi


1 Answers

The problem with docker container's is that it takes alot of memory space within or system so if you don't have enough memory space docker will throw an exception about no space left.

You should always use sudo docker system prune command to avoid those errors, Before building any new image don't forget to use this command;

This command will remove all images, containers & volumes from your system.

Don't forget to use sudo docker system prune

like image 191
Slim Coder Avatar answered Nov 21 '25 09:11

Slim Coder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!