mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-22 12:29:39 +01:00
Docker Role 🚀
This role is part of the CyMaIS Project, maintained and developed by Kevin Veen-Birkenbach.
Maintenance 🛠️
List Unused Volumes
docker volume ls -q -f "dangling=true"
Remove All Unused Volumes
docker volume rm $(docker volume ls -q -f "dangling=true")
Network Issues Fixes
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker network prune -f
systemctl stop docker
rm -fv /var/lib/docker/network/files/local-kv.db
systemctl start docker
Warning ⚠️
Caution: The following instructions will delete all Docker containers and volumes on your server.
Make sure you have backups or that you're certain you want to clean your Docker environment completely.
Cleaning Up Docker Containers and Volumes 🧹
Delete All Docker Containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Delete All Docker Volumes
docker volume rm $(docker volume ls -q)
Enjoy using this role and happy containerizing! 🎉