mreithub / rocker

Docker wrapper
Apache License 2.0
4 stars 0 forks source link

Add support for container labels #7

Open mreithub opened 9 years ago

mreithub commented 9 years ago

Could look something like:

{
    "image": "foo",
    "labels": {
       "lbl1": "value1",
       "com.example.lbl2": "val2"
    }
}
mreithub commented 9 years ago

Note that labels are only supported since Docker v1.6 (API v1.17), so it's probably best to issue a warning if labels are used but not supported by Docker

mreithub commented 9 years ago

storing labels implemented in 6fb9d680 (reading them is still missing)