labels
使用Docker labels为容器添加元数据。可以使用数组或字典形式。
推荐使用反向DNS命名法来防止与被其他软件使用的标签名产生冲突。
labels:
com.example.description: "Accounting webapp"
com.example.department: "Finance"
com.example.label-with-empty-value: ""
labels:
- "com.example.description=Accounting webapp"
- "com.example.department=Finance"
- "com.example.label-with-empty-value"
Last updated
Was this helpful?