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:
commit
a86b2376a0
1 changed files with 4 additions and 0 deletions
|
@ -168,6 +168,10 @@ func deployServices(
|
||||||
Command: service.Command,
|
Command: service.Command,
|
||||||
Args: service.Args,
|
Args: service.Args,
|
||||||
Env: service.Env,
|
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{
|
EndpointSpec: &swarm.EndpointSpec{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue