August 2018
Intermediate to advanced
352 pages
12h 30m
English
All the labels attached to a container can be listed through the docker container inspect command. As we can see, the inspect command returns both the image and the container labels that are attached to the container:

You can apply labels to a container from a file by using the --label-file option. The file should have a list of labels separated by a new EOL.
These labels are different from Kubernetes labels, which we will explore in Chapter 8, Docker Orchestration and Hosting Platform.
Read now
Unlock full access