I am creating a single docker image with the multi microservices project. I want to add microservices-wise version info into the Dockerfile label. I can create individual labels and pass values during image build time. However, I want to know if there are some recommended best practices for the same.
The goal is to fetch version info using docker inspect before creating a container out of it.
I remember that I used org.label-schema.vcs-ref in the past to store the commit id. The page suggests to replace it with org.opencontainers.image.revision. While version is aimed toward the semantic application versioning. But on the other side a commitid is even more precise then a semantic version