Cleanup Docker

I keep having friends who have experienced the no space left on device when trying to build images.

I have aliases for most of my container/image/volume cleanup:

lias dka='dkc;dki;dkv'
alias dkc='docker ps -aq | xargs docker rm -f'
alias dki='docker images -aq | xargs docker rmi -f'
alias dkv='docker volume ls -qf dangling=true | xargs docker volume rm'

I use dka all the time.

There is also the docker system prune -a command that works.

I’ve also had to unmount my local aufs volume on my ubuntu laptop via:

sudo umount -l /var/lib/docker/aufs && sudo rm -rf /var/lib/docker/aufs

and all things are cleaned up. Hope this helps someone else.

Cheers.

Jason Meridth

jmeridth

My name is Jason Meridth. I am a continuously learning senior software developer/team lead/development manager trying to not let best be the enemy of better. I reserve the right to change my mind upon obtaining more information. I am also the owner and principal software consultant at Meridth, LLC. If you have any software, hardward, networking, process, etc needs please don't hesitate to reach out to me.

Raspberry Pi Kubernetes Cluster - Part 2

Howdy again.Alright, my 8 port switch showed up so I was able to connect my raspberry 3B+ boards to my home network. I plugged it in wit...… Continue reading

Raspberry Pi Kubernetes Cluster - Part 1

Published on April 07, 2018

SSH - Too Many Authentication Failures

Published on March 28, 2018