From 034a8325102bdf00c6d144eb7d37a51cdce509a0 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 3 Dec 2022 18:08:26 +0100 Subject: [PATCH] added maintanance hints for docker --- roles/native-docker/Readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/native-docker/Readme.md b/roles/native-docker/Readme.md index 0a0a409f..332c10b2 100644 --- a/roles/native-docker/Readme.md +++ b/roles/native-docker/Readme.md @@ -1,5 +1,17 @@ # role native-docker +## maintanance + +### list unused volumes +```bash + docker volume ls -q -f "dangling=true" +``` + +### remove all unused volumes +```bash + docker volume rm $(docker volume ls -q -f "dangling=true") +``` + ## performance - https://forums.docker.com/t/mysql-slow-performance-in-docker/37179/21