Dockerfile instructions
Dockerfile LABEL
Stores descriptive string metadata. Later values for the same key override inherited ones. Not an environment variable, permission control or verification mechanism. A declared version label is not a content digest or an authenticity guarantee.
Formal Syntax & Structure
docker syntaxdocker
LABEL <key>=<value> ...Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| key | string | Metadata key. |
| value | string | Metadata string. |
Working Example
Example Snippetdocker
FROM busybox:1.37LABEL org.opencontainers.image.title="ByteMind lab"LABEL org.opencontainers.image.version="0.1"CMD ["echo", "label demo"]