mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
Merge pull request #9012 from notok/rm_containers_when_build_succeed
Remove intermediate containers when build succeeded in classic build
This commit is contained in:
commit
36c2947e4d
@ -212,6 +212,7 @@ func (o *projectOptions) toProjectOptions(po ...cli.ProjectOptionsFn) (*cli.Proj
|
|||||||
cli.WithName(o.ProjectName))...)
|
cli.WithName(o.ProjectName))...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PluginName is the name of the plugin
|
||||||
const PluginName = "compose"
|
const PluginName = "compose"
|
||||||
|
|
||||||
// RunningAsStandalone detects when running as a standalone program
|
// RunningAsStandalone detects when running as a standalone program
|
||||||
|
@ -231,6 +231,7 @@ func imageBuildOptions(options buildx.Options) dockertypes.ImageBuildOptions {
|
|||||||
return dockertypes.ImageBuildOptions{
|
return dockertypes.ImageBuildOptions{
|
||||||
Tags: options.Tags,
|
Tags: options.Tags,
|
||||||
NoCache: options.NoCache,
|
NoCache: options.NoCache,
|
||||||
|
Remove: true,
|
||||||
PullParent: options.Pull,
|
PullParent: options.Pull,
|
||||||
BuildArgs: toMapStringStringPtr(options.BuildArgs),
|
BuildArgs: toMapStringStringPtr(options.BuildArgs),
|
||||||
Labels: options.Labels,
|
Labels: options.Labels,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user