always use 'docker' export entry when building with 'up' or 'run' commands

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2022-09-02 15:36:28 +02:00
parent e016faac33
commit 44c55e89c0
1 changed files with 8 additions and 10 deletions

View File

@ -168,7 +168,6 @@ func (s *composeService) getBuildOptions(project *types.Project, images map[stri
if err != nil {
return nil, err
}
if len(opt.Platforms) > 1 {
opt.Exports = []bclient.ExportEntry{{
Type: "docker",
Attrs: map[string]string{
@ -178,7 +177,6 @@ func (s *composeService) getBuildOptions(project *types.Project, images map[stri
if opt.Platforms, err = useDockerDefaultPlatform(project, service.Build.Platforms); err != nil {
opt.Platforms = []specs.Platform{}
}
}
opts[imageName] = opt
continue
}