dockertools: add image ref to ImageService interfaces

This commit is contained in:
Pengfei Ni 2016-12-29 16:52:43 +08:00
parent fcbf39ea54
commit fafccad384

View File

@ -478,6 +478,7 @@ func (f *FakeDockerClient) PullImage(image string, auth dockertypes.AuthConfig,
err := f.popError("pull")
if err == nil {
authJson, _ := json.Marshal(auth)
f.Image = &dockertypes.ImageInspect{ID: image}
f.pulled = append(f.pulled, fmt.Sprintf("%s using %s", image, string(authJson)))
}
return err