Skip to content
masterclass Buddy

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=value

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • LABEL instruction
  • docker build --label
  • docker run --label
  • docker inspect
  • docker image ls --filter
  • docker container ls --filter
  • docker volume create --label
  • docker network create --label

Source: Docker object labels. Checked 2026-11-03.