mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
Update pkg/bridge/convert.go
Co-authored-by: Guillaume Lours <[email protected]> Signed-off-by: Eric Wyles <[email protected]>
This commit is contained in:
committed by
Guillaume Lours
co-authored by
Guillaume Lours
parent
c25474844c
commit
1b76c732f2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user