Kopano-dev / kopano-docker

Unofficial Kopano Docker images for all Kopano services.
MIT License
21 stars 12 forks source link

Add convenience functions to remove build images and containers #11

Closed h44z closed 4 years ago

fbartels commented 4 years ago

The clean all images does not actually remove all images:

$ docker images --format '{{.Repository}}:{{.Tag}}' | grep 'fbartels/kopano_'
fbartels/kopano_base:<none>

from a quick search there does not really to really delete all these images in a single command.

What I am using when I want to clean out my local system is docker system prune -a

h44z commented 4 years ago

Hm, is the base image used in any container? If I try this call, all build images get deleted.

fbartels commented 4 years ago

Yes, kopano_base is included as the base for for kopano_core, kopano_php, kopno_zpush, .. basically everything Debian based.

It feels like Docker just occasionally creates these dangling images. Pruning my system and then running make build-all already creates this:

$ docker image ls --filter dangling=true
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
<none>              <none>              dedb46d1f03d        11 minutes ago      22.8MB
<none>              <none>              7b56fd2a2d73        15 minutes ago      376MB

But at least none with the "none" tag.

fbartels commented 4 years ago

Thanks!