Skip to content

Commit

Permalink
Merge pull request #9012 from notok/rm_containers_when_build_succeed
Browse files Browse the repository at this point in the history
Remove intermediate containers when build succeeded in classic build
  • Loading branch information
Ulysses Souza authored Dec 8, 2021
2 parents 6735220 + 3bbcc3d commit 36c2947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/compose/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func (o *projectOptions) toProjectOptions(po ...cli.ProjectOptionsFn) (*cli.Proj
cli.WithName(o.ProjectName))...)
}

// PluginName is the name of the plugin
const PluginName = "compose"

// RunningAsStandalone detects when running as a standalone program
Expand Down
1 change: 1 addition & 0 deletions pkg/compose/build_classic.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ func imageBuildOptions(options buildx.Options) dockertypes.ImageBuildOptions {
return dockertypes.ImageBuildOptions{
Tags: options.Tags,
NoCache: options.NoCache,
Remove: true,
PullParent: options.Pull,
BuildArgs: toMapStringStringPtr(options.BuildArgs),
Labels: options.Labels,
Expand Down

0 comments on commit 36c2947

Please sign in to comment.