Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/daemon/daemon.go b/daemon/daemon.go
- index 6a8d18e..f82bcdb 100644
- --- a/daemon/daemon.go
- +++ b/daemon/daemon.go
- @@ -1236,6 +1236,10 @@ func (daemon *Daemon) ImageHistory(name string) ([]*types
- // GetImageID returns an image ID corresponding to the image referred to by
- // refOrID.
- func (daemon *Daemon) GetImageID(refOrID string) (image.ID, error) {
- + if i := strings.Index(refOrID, ":"); i >= 0 {
- + refOrID = refOrID[i+1:]
- + }
- +
- // Treat as an ID
- if id, err := digest.ParseDigest(refOrID); err == nil {
- return image.ID(id), nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement