Skip to content

Commit 59fd0d2

Browse files
authored
Merge pull request #7 from tianrandailove/hotfix/image
fix: wait image building bug
2 parents 45456eb + 1c0eb44 commit 59fd0d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/peitho/service/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (i *imageService) Build(ctx context.Context, dockerfile string, tags []stri
8080

8181
// waitting for image build
8282
for t := 0; t < 300; t++ {
83-
_, inspectErr := i.Inspect(ctx, tags[0])
83+
_, _, inspectErr := i.docker.ImageInspectWithRaw(ctx, tags[0])
8484
if inspectErr == nil {
8585
break
8686
}

0 commit comments

Comments
 (0)