From 65747baa28c9ee56321c17f80ba1911b78448965 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Thu, 4 Aug 2016 11:50:26 -0700 Subject: [PATCH] Add Annotations to Task definition This fix is related to docker pull request: https://github.com/docker/docker/pull/24850 and swarmkit pull request: https://github.com/docker/swarmkit/pull/1193 Basically, this fix adds Annotations to Task definition so that Task name could be saved. The Task name is defined as .. Signed-off-by: Yong Tang --- types/swarm/task.go | 1 + 1 file changed, 1 insertion(+) diff --git a/types/swarm/task.go b/types/swarm/task.go index fa8228a..87105f0 100644 --- a/types/swarm/task.go +++ b/types/swarm/task.go @@ -38,6 +38,7 @@ const ( type Task struct { ID string Meta + Annotations Spec TaskSpec `json:",omitempty"` ServiceID string `json:",omitempty"`