diff --git a/pkg/compose/convergence.go b/pkg/compose/convergence.go index 60f343228..65a2afa5d 100644 --- a/pkg/compose/convergence.go +++ b/pkg/compose/convergence.go @@ -479,10 +479,14 @@ func (s *composeService) createMobyContainer(ctx context.Context, project *types if err != nil { return created, err } + platform := service.Platform + if platform == "" { + platform = project.Environment["DOCKER_DEFAULT_PLATFORM"] + } var plat *specs.Platform - if service.Platform != "" { + if platform != "" { var p specs.Platform - p, err = platforms.Parse(service.Platform) + p, err = platforms.Parse(platform) if err != nil { return created, err }