aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/docker
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dotfiles/cheat/docker5
1 files changed, 5 insertions, 0 deletions
diff --git a/dotfiles/cheat/docker b/dotfiles/cheat/docker
index 86187f5..12b572a 100644
--- a/dotfiles/cheat/docker
+++ b/dotfiles/cheat/docker
@@ -42,3 +42,8 @@ DO: echo N | sudo tee /sys/module/overlay/parameters/metacopy
# command for launch GUI soft, sometimes custom Dockerfile is needed
--user $UID -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix <container_name>
+
+# Remove shit
+for image in $(docker images | grep "^<none>" | awk '{print $3}'); do docker rmi $image; done
+# in case there is no important data in volumes:
+sudo rm -rf /var/lib/docker/volumes