Add force remove option to layered image builds
@@ -1134,6 +1134,7 @@ func (d *stiDocker) BuildImage(opts BuildImageOptions) error {
NoCache: true,
SuppressOutput: false,
Remove: true,
+ ForceRemove: true,
}
if opts.CGroupLimits != nil {
dockerOpts.Memory = opts.CGroupLimits.MemoryLimitBytes
