Browse code

Print checkpoint id when creating a checkpoint

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
(cherry picked from commit f1df2d5a2e563bd38e797e33bce444edd346521c)
Signed-off-by: Victor Vieux <vieux@docker.com>

Arash Deshmeh authored on 2016/12/02 13:28:51
Showing 1 changed files
... ...
@@ -1,6 +1,8 @@
1 1
 package checkpoint
2 2
 
3 3
 import (
4
+	"fmt"
5
+
4 6
 	"golang.org/x/net/context"
5 7
 
6 8
 	"github.com/docker/docker/api/types"
... ...
@@ -51,5 +53,6 @@ func runCreate(dockerCli *command.DockerCli, opts createOptions) error {
51 51
 		return err
52 52
 	}
53 53
 
54
+	fmt.Fprintf(dockerCli.Out(), "%s\n", opts.checkpoint)
54 55
 	return nil
55 56
 }