mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 23:38:24 +00:00
Set labels on container create
Signed-off-by: Darren Shepherd <darren@rancher.com>
This commit is contained in:
@@ -90,6 +90,10 @@ func (daemon *Daemon) Containers(job *engine.Job) engine.Status {
|
||||
return nil
|
||||
}
|
||||
|
||||
if !psFilters.MatchKVList("label", container.Config.Labels) {
|
||||
return nil
|
||||
}
|
||||
|
||||
if before != "" && !foundBefore {
|
||||
if container.ID == beforeCont.ID {
|
||||
foundBefore = true
|
||||
@@ -157,6 +161,7 @@ func (daemon *Daemon) Containers(job *engine.Job) engine.Status {
|
||||
out.SetInt64("SizeRw", sizeRw)
|
||||
out.SetInt64("SizeRootFs", sizeRootFs)
|
||||
}
|
||||
out.SetJson("Labels", container.Config.Labels)
|
||||
outs.Add(out)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user