aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/docker
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2020-10-04 22:25:33 +0200
committerneodarz <neodarz@neodarz.net>2020-10-04 22:25:33 +0200
commit9443eb4006a06bc3d9a2ac3d5339ac394d2c5c6e (patch)
tree864670655f9bd3d521410dd24fa14b002ab3c81c /dotfiles/cheat/docker
parent8b4e51ffa979c10e37d7ba3d7957184b751c2db7 (diff)
downloaddotfiles_dotdrop-9443eb4006a06bc3d9a2ac3d5339ac394d2c5c6e.tar.xz
dotfiles_dotdrop-9443eb4006a06bc3d9a2ac3d5339ac394d2c5c6e.zip
Update some cheat
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