From b68a6ad2ac8fdb513ff18d4c127848cd50b23525 Mon Sep 17 00:00:00 2001 From: Arash Deshmeh Date: Thu, 1 Dec 2016 23:28:51 -0500 Subject: [PATCH] Print checkpoint id when creating a checkpoint Signed-off-by: Arash Deshmeh --- command/checkpoint/create.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/checkpoint/create.go b/command/checkpoint/create.go index 2377b5e2e3..473a941733 100644 --- a/command/checkpoint/create.go +++ b/command/checkpoint/create.go @@ -1,6 +1,8 @@ package checkpoint import ( + "fmt" + "golang.org/x/net/context" "github.com/docker/docker/api/types" @@ -51,5 +53,6 @@ func runCreate(dockerCli *command.DockerCli, opts createOptions) error { return err } + fmt.Fprintf(dockerCli.Out(), "%s\n", opts.checkpoint) return nil }