youssef Elhanafi
youssef Elhanafi

Reputation: 49

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

Upvotes: 2

Views: 7606

Answers (2)

Vivek Anand
Vivek Anand

Reputation: 1384

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

Upvotes: 9

Lwazi Ciniso Dlamini
Lwazi Ciniso Dlamini

Reputation: 46

docker system prune works but you need to use sudo

Upvotes: 1

Related Questions