diff --git a/api/client/stack/deploy.go b/api/client/stack/deploy.go index 5a1a5a5318..c3258f1778 100644 --- a/api/client/stack/deploy.go +++ b/api/client/stack/deploy.go @@ -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{