mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
containerd: images overridden by a build are kept dangling
The build exporter now clears the image tags and always exported to a dangling image. It then uses the image tagger to perform the tagging which causes the dangling image to be removed and the naming message to be sent correctly. An additional progress message is sent to indicate the renaming. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
This commit is contained in:
@@ -423,7 +423,6 @@ func initBuildkit(ctx context.Context, d *daemon.Daemon) (_ builderOptions, clos
|
||||
ContainerdNamespace: cfg.ContainerdNamespace,
|
||||
Callbacks: exporter.BuildkitCallbacks{
|
||||
Exported: d.ImageExportedByBuildkit,
|
||||
Named: d.ImageNamedByBuildkit,
|
||||
},
|
||||
CDISpecDirs: cdiSpecDirs,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user