Signed-off-by: Antonio Murdaca <runcom@linux.com>
| ... | ... |
@@ -161,9 +161,21 @@ List all images with `vendor` `ACME`: |
| 161 | 161 |
$ docker images --filter "label=vendor=ACME" |
| 162 | 162 |
|
| 163 | 163 |
|
| 164 |
-## Daemon labels |
|
| 164 |
+## Container labels |
|
| 165 |
+ |
|
| 166 |
+ docker run \ |
|
| 167 |
+ -d \ |
|
| 168 |
+ --label com.example.group="webservers" \ |
|
| 169 |
+ --label com.example.environment="production" \ |
|
| 170 |
+ busybox \ |
|
| 171 |
+ top |
|
| 172 |
+ |
|
| 173 |
+Please refer to the [Query labels](#query-labels) section above for information |
|
| 174 |
+on how to query labels set on a container. |
|
| 165 | 175 |
|
| 166 | 176 |
|
| 177 |
+## Daemon labels |
|
| 178 |
+ |
|
| 167 | 179 |
docker daemon \ |
| 168 | 180 |
--dns 8.8.8.8 \ |
| 169 | 181 |
--dns 8.8.4.4 \ |