docker container prune --filter until=1h
docker rmi $(docker images -f "dangling=true" -q)
docker image prune
docker image prune -a
docker volume prune
docker system prune --volumes
| WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all anonymous volumes not used by at least one container
- all dangling images
- all dangling build cache
docker system prune --volumes -a
| WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all anonymous volumes not used by at least one container
- all images without at least one container associated to them
- all build cache