Docker holding a lot of disk space

0 votes
I just checked that docker is using a lot of disk space on my system. I used the devicemapper to determine the space. How do I remove the redundant docker data lying around.
Aug 22, 2018 in Docker by shubham
• 6,890 points
35 views

1 answer to this question.

0 votes

Check your docker redundant containers and images that you're not using.

You can remove unused docker containers:

docker rm -v $(docker ps -a -q -f status=exited)

and unused docker images:

docker rmi $(docker images -q)
answered Aug 22, 2018 by ajs3033
• 7,280 points

Related Questions In Docker

0 votes
2 answers

How can I inspect the file system of a failed `docker build

Failed command is a build that has ...READ MORE

answered Aug 6, 2018 in Docker by Nilesh
• 6,880 points
98 views
0 votes
2 answers

Why is docker image eating up my disk space that is not used by docker

Move the /var/llib/docker directory. Assuming the /root directory has enough ...READ MORE

answered Aug 6, 2018 in Docker by Nilesh
• 6,880 points
194 views
0 votes
2 answers

How do I force Docker for a clean build of an image ?

You could try this inorder to clean ...READ MORE

answered Aug 6 in Docker by Sirajul
• 36,220 points
1,605 views
0 votes
1 answer

Virtual machine disk space in Docker for Windows beta

The MobyLinux Hyper-V machine is provisioned on ...READ MORE

answered Oct 8, 2018 in Docker by Tyrion anex
• 8,270 points
36 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

Can't access apache karaf docker container

To access karaf shell directly you can ...READ MORE

answered Aug 6, 2018 in Docker by Nilesh
• 6,880 points
236 views