How to access the metadata of a docker container from a script running inside the container?
<p>I am trying to understand whether it is possible to read the metadata (Labels, in particular) properties of a container using a bash script.</p>

<p>For instance, if there is a Dockerfile like:</p>

<pre><code>FROM busybox
LABEL abc = abc_value1
</code></pre>

<p>And, if I build and run an image based on the file above, like so:</p>

<pre><code>docker build . -t image1
docker run -ti image1 /bin/bash
</code></pre>

<p>Is there any way to access the value of the "abc" label inside the bash shell?  If so, how?</p>