Update pkg/bridge/convert.go

Co-authored-by: Guillaume Lours <[email protected]>
Signed-off-by: Eric Wyles <[email protected]>
This commit is contained in:
Eric Wyles
2026-08-06 16:00:08 +02:00
committed by Guillaume Lours
co-authored by Guillaume Lours
parent c25474844c
commit 1b76c732f2
+5 -2
View File
@@ -169,8 +169,11 @@ func LoadAdditionalResources(ctx context.Context, dockerCLI command.Cli, project
var inspect image.InspectResponse
if service.Build != nil && service.Image == "" {
result, err := dockerCLI.Client().ImageInspect(ctx, imageName)
if err != nil && !errdefs.IsNotFound(err) {
return nil, err
if err != nil {
if !errdefs.IsNotFound(err) {
return nil, err
}
logrus.Warnf("image %s for service %s not found locally; Dockerfile-exposed ports will not be included — run `docker compose build` first to include them", imageName, name)
}
inspect = result.InspectResponse
} else {