mirror of
https://github.com/moby/moby.git
synced 2026-01-06 07:21:23 +03:00
move inspect from server to daemon
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
@@ -1052,11 +1052,12 @@ func TestContainerOrphaning(t *testing.T) {
|
||||
if err := cli.CmdBuild("-t", image, tmpDir); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
img, err := srv.ImageInspect(image)
|
||||
if err != nil {
|
||||
job := globalEngine.Job("image_get", image)
|
||||
info, _ := job.Stdout.AddEnv()
|
||||
if err := job.Run(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
return img.ID
|
||||
return info.Get("ID")
|
||||
}
|
||||
|
||||
// build an image
|
||||
|
||||
Reference in New Issue
Block a user