docker cleanup unused containers code example
Example 1: delete all containers created x hours ago
# Delete all stopped containers
docker container prune
Example 2: remove unused images docker manually
$ docker rmi $(docker images -q -f dangling=true)