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.