From f1df2d5a2e563bd38e797e33bce444edd346521c 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 --- cli/command/checkpoint/create.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/command/checkpoint/create.go b/cli/command/checkpoint/create.go index 2377b5e2e3..473a941733 100644 --- a/cli/command/checkpoint/create.go +++ b/cli/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 }