48

Docker Volume Out of Disk Space?

 5 years ago
source link: https://www.tuicool.com/articles/hit/2qUJJv6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Recently I have been working on a set of projects that use Docker extensively. I received an error message that appeared to be an out of disk space message. At first I thought it was the host machine that was out of space. On further investigation it was the docker volume that was out of space. It makes sense for containers to have limits it’s just odd to encounter them – when you shut down the containers the volumes remain until you clean them up.

Here are some useful clean up commands for Docker.

dockervolume rm  $( docker volume ls) 

dockerrm -f $( docker ps -a -q)

dockervolume prune

dockerrmi -f $( docker images -q)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK