提交 ed888d7e 编写于 作者: W WangFengTu

Response image id but not digest when pull image

iSulad does not support using image name's format 'name@digest' to run
container currently, so response image id which iSulad support can
avoid failure caused by passing name@digest to iSulad by user in some
situation.
Signed-off-by: NWangFengTu <wangfengtu@huawei.com>
上级 a38e8368
......@@ -117,10 +117,7 @@ func imagePull(gopts *globalOptions, popts *pullOptions, image string) (string,
if err != nil {
return "", err
}
imageRef := status.ID
if len(status.RepoDigests) > 0 {
imageRef = status.RepoDigests[0]
}
fmt.Print(imageRef)
return imageRef, nil
fmt.Print(status.ID)
return status.ID, nil
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册