Docker is a great tool, but when using it on a daily basis to build your environments - especially like we when we use Docker to build development, testing and production environments - your local registry tends to grow in terms of size (and number of images).

Here are two useful commands for keeping your registry clean:

Remove all not running containers

It’s necessary to remove not used containers in order to be able to remove images that these containers used: docker ps -a -q --filter "status=exited" | xargs docker rm

Remove all images that do not have a named repository

Most of the images that are built (by hand/fig) have repository names - if not, most probably they may be removed:

```docker images | grep "^<none>" | awk '{print $3}' | xargs docker rmi```