Skip to content

Instantly share code, notes, and snippets.

@WesleyBatista
WesleyBatista / README.md
Last active November 1, 2021 14:51 — forked from antonydevanchi/README.md
Download all images from undraw.co/illustrations
#!/bin/bash
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# remove unused images:
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi
# remove unused volumes:
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <(