1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #25070 from yongtang/24881-label-containers-with-stack-name

Label containers with stack name when deploying stack/bundle
This commit is contained in:
Michael Crosby 2016-08-12 10:20:06 -07:00 committed by GitHub
commit a86b2376a0

View file

@ -168,6 +168,10 @@ func deployServices(
Command: service.Command,
Args: service.Args,
Env: service.Env,
// Service Labels will not be copied to Containers
// automatically during the deployment so we apply
// it here.
Labels: getStackLabels(namespace, nil),
},
},
EndpointSpec: &swarm.EndpointSpec{