mirror of
https://github.com/docker/compose.git
synced 2026-08-04 06:38:45 +00:00
Merge pull request #9862 from glours/use-docker-export-if-no-build-platforms
configure default builder export when no build.platforms defined
This commit is contained in:
commit
e2a3fe9427
1 changed files with 6 additions and 0 deletions
|
|
@ -81,6 +81,12 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
|
|||
Attrs: map[string]string{"ref": image},
|
||||
})
|
||||
}
|
||||
buildOptions.Exports = []bclient.ExportEntry{{
|
||||
Type: "docker",
|
||||
Attrs: map[string]string{
|
||||
"load": "true",
|
||||
},
|
||||
}}
|
||||
if len(buildOptions.Platforms) > 1 {
|
||||
buildOptions.Exports = []bclient.ExportEntry{{
|
||||
Type: "image",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue