diff --git a/components/engine/daemon/cluster/services.go b/components/engine/daemon/cluster/services.go index ec5a58c02d..865f424c2a 100644 --- a/components/engine/daemon/cluster/services.go +++ b/components/engine/daemon/cluster/services.go @@ -193,7 +193,7 @@ func (c *Cluster) UpdateService(serviceIDOrName string, version uint64, spec typ } } - resp := &apitypes.ServiceUpdateResponse{} + resp = &apitypes.ServiceUpdateResponse{} // pin image by digest if os.Getenv("DOCKER_SERVICE_PREFER_OFFLINE_IMAGE") != "1" {