mirror of
https://github.com/docker/compose.git
synced 2026-06-28 04:03:48 +00:00
Remove intermediate containers when build succeeded
Intermediate containers remain even when build succeeded when building with classic way (i.e. not with buildkit). Remove them when build succeeded like default behavior of docker build. Signed-off-by: notok <noto.kazufumi@gmail.com>
This commit is contained in:
parent
6735220557
commit
b47d8ea868
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue