How do I fix the “no space left on device” error in docker?

0 votes

I’m trying to run docker but every time I run it, I get the below error:

WARNING: No memory limit support 
WARNING: No swap limit support
Jul 31, 2018 in Docker by Tyrion anex
• 8,280 points

recategorized Nov 12, 2018 by Omkar 1,051 views

2 answers to this question.

0 votes

Just clean up some space on docker, use the following commands:

docker system prune

This will get rid of:

- all stopped containers

- all volumes not used by at least one container

- all networks not used by at least one container

- all dangling images

To clean your system, first remove containers and then the images. By specifying the #CONTAINER_ID and #IMAGE_ID you can remove selected containers and images that are no longer needed.

$ docker rm #CONTAINER_ID
$ docker rmi #IMAGE_ID
answered Jul 31, 2018 by Sophie may
• 9,430 points
0 votes

I had a similar issue, got the solution fron github

add cgroup_enable=memory swapaccount=1 to kernel boot options to enable both swap and memory accounting
/etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="cgroup_enable=memory swapaccount=1"
then sudo grub-update && sudo reboot

Hope that helps :)

answered Apr 29 by Vishaka

Related Questions In Docker

0 votes
1 answer

How do I scale in Docker Swarm Mode W/Terraform Digital Ocean Load Balancing

The solution you could build for Digital ...READ MORE

answered Jun 19, 2018 in Docker by shubham
• 6,870 points
167 views
0 votes
1 answer

How do I know which datastore indexes are in error?

There was no public API for managing ...READ MORE

answered Jul 27, 2018 in Docker by ajs3033
• 7,240 points
21 views
0 votes
1 answer

How do I install phantomjs with node in docker

Here is what you can try. Link for existing ...READ MORE

answered Aug 1, 2018 in Docker by Damon Salvatore
• 5,490 points
467 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,160 points
100 views
0 votes
1 answer