Quick Tip: Keeping your local Docker registry clean

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
hire us

Let’s talk about Mobile Apps

We’d love to design, develop and release them for you.

Highest DevOps Standards

Our team wield the right skills to make things work.

Angular magic in the making

Most flexible development technology for stunnig results.

Web Apps cooked the right way

The ultimate combination of code, design and user experience.

Django REST Framework

TEONITE develops, supports and donates open source projects.