I am trying to figure out if it is possible to read the metadata properties (Labels, in particular) of a container using a bash script.
For example, if there is a Docker file, for example:
FROM busybox LABEL abc = abc_value1
And, if I create and run the image based on the above file:
docker build . -t image1 docker run -ti image1 /bin/bash
Is there a way to access the value of the “abc” label inside the bash shell? If so, how?
bash docker dockerfile
Gozela
source share