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 821 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,330 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,560 points
144 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,080 points
18 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,450 points
363 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,140 points
79 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.