mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix busybox image detection
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
parent
b8932abcd3
commit
730d9ba174
1 changed files with 2 additions and 2 deletions
|
@ -133,10 +133,10 @@ func init() {
|
|||
|
||||
func setupBaseImage() {
|
||||
eng := newTestEngine(log.New(os.Stderr, "", 0), false, unitTestStoreBase)
|
||||
job := eng.Job("inspect", unitTestImageName, "image")
|
||||
job := eng.Job("image_inspect", unitTestImageName)
|
||||
img, _ := job.Stdout.AddEnv()
|
||||
// If the unit test is not found, try to download it.
|
||||
if err := job.Run(); err != nil || img.Get("id") != unitTestImageID {
|
||||
if err := job.Run(); err != nil || img.Get("Id") != unitTestImageID {
|
||||
// Retrieve the Image
|
||||
job = eng.Job("pull", unitTestImageName)
|
||||
job.Stdout.Add(utils.NopWriteCloser(os.Stdout))
|
||||
|
|
Loading…
Add table
Reference in a new issue