<p>We are building our docker-images, and adding a few metadata-labels during docker build, e.g:</p>

<pre><code>docker build --label no.company.version=1.2.3 .
</code></pre>

<p>When we at some point later in time use this image in a kubernetes pod, we would like to retreive that labels from the kubernetes api. This would be useful for tracking other metadata than what is encoded in the image tag itself.</p>

<p>The labels are available through docker on the node, but I can not find any way to retreive them in kubernetes. 
Is this possible?</p>

<p>I'm not aware of a way to get docker labels from Kubernetes. The downward api allows you to get k8s labels into a pod however: <a href="https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/</a></p>
