$ docker images --filter "label=precice-branch=develop"
REPOSITORY TAG IMAGE ID CREATED SIZE
precice/precice-ubuntu1804.home-develop latest cf81924ec458 17 minutes ago 1.17GB
One argument that speaks against our current tag based labelling system is that the tags are order-sensitive. Meaning:ubuntu1804.petsc is not the same as petsc.ubuntu1804.
Docker provides a system for labelling images and filtering images by label:
This might help us to replace our current tagging system with something more standardized.
Example for
Dockerfile.Ubuntu1804.home
One can set labels directly in the docker file:
Use
docker inspect
to check labels of an image:Or filter images by label: