Idea to save DockerHub Resources

If you name your local builds as localhost/yourimage then you can search for every image starting with localhost and delete them in one line:

docker image rm $(docker image ls -q 'localhost/*')

You could also use labels which I did in my demo project that I presented at Docker Community ALl-Hands:

You can find the video in the Tips & HowTos category: