diff --git a/cmd/compose/compose.go b/cmd/compose/compose.go index c055c1eba..f5a74c087 100644 --- a/cmd/compose/compose.go +++ b/cmd/compose/compose.go @@ -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 diff --git a/pkg/compose/build_classic.go b/pkg/compose/build_classic.go index 26cfdc56e..3354b4b23 100644 --- a/pkg/compose/build_classic.go +++ b/pkg/compose/build_classic.go @@ -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,