Docker · Directive
LABEL
Docker labels are string key-value metadata attached to objects such as images, containers, volumes, and networks. Use them to organize objects, store information, and filter or automate Docker resources.
Last updated
Syntax
LABEL key="value"
docker build --label key=value
docker run --label key=valueIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
LABEL instructiondocker build --labeldocker run --labeldocker inspectdocker image ls --filterdocker container ls --filterdocker volume create --labeldocker network create --label