docs(templates): document the labels property for container templates

pull/43/head
Anthony Lapenna 2018-01-06 18:37:07 +01:00
parent 7b1de936c2
commit 3942c8b5c4
1 changed files with 21 additions and 0 deletions

View File

@ -197,6 +197,27 @@ Example:
"ports": ["80/tcp", "443/tcp"]
}
``labels``
----------
A JSON array describing the labels associated to the template. Each element in the array must be a valid JSON object with two properties ``name`` and ``value``.
This field is **optional**.
Example:
.. code-block:: json
{
"labels": [
{ "name": "com.example.vendor", "value": "Acme" },
{ "name": "com.example.license", "value": "GPL" },
{ "name": "com.example.version", "value": "1.0" }
]
}
``privileged``
--------------