浏览代码

Print checkpoint id when creating a checkpoint

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
Arash Deshmeh 8 年之前
父节点
当前提交
f1df2d5a2e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      cli/command/checkpoint/create.go

+ 3 - 0
cli/command/checkpoint/create.go

@@ -1,6 +1,8 @@
 package checkpoint
 package checkpoint
 
 
 import (
 import (
+	"fmt"
+
 	"golang.org/x/net/context"
 	"golang.org/x/net/context"
 
 
 	"github.com/docker/docker/api/types"
 	"github.com/docker/docker/api/types"
@@ -51,5 +53,6 @@ func runCreate(dockerCli *command.DockerCli, opts createOptions) error {
 		return err
 		return err
 	}
 	}
 
 
+	fmt.Fprintf(dockerCli.Out(), "%s\n", opts.checkpoint)
 	return nil
 	return nil
 }
 }