March 2017
Beginner to intermediate
925 pages
18h 11m
English
With Docker 1.6, a feature has been added to label containers and images, through which we can attach arbitrary key-value metadata to them. You can think of them as environment variables, which are not available to running applications inside containers but they are available to programs (Docker CLI) that are managing images and containers. Labels attached to images also get applied to containers started via them. We can also attach labels to containers while starting them.
Docker also provides filters to containers, images, and events (https://docs.docker.com/reference/commandline/cli/#filtering), which we can use in conjunction with labels to narrow down our searches.
For this recipe, let's assume that we have ...
Read now
Unlock full access