From ef770ce8fc72cba1dbbc40b8d943bd42827a3422 Mon Sep 17 00:00:00 2001 From: Dax Kelson Date: Thu, 24 Sep 2026 18:52:55 -0600 Subject: [PATCH] daemon/containerd: fix em dash in --force hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The error returned when deleting a platform-specific image variant without force told users to pass "—-force", with a U+2014 em dash in place of the first hyphen. Copying that into a shell gives an unknown flag error. Replace it with "--force". Signed-off-by: Dax Kelson --- daemon/containerd/image_delete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/containerd/image_delete.go b/daemon/containerd/image_delete.go index 15cb5c0ff9..08ee854288 100644 --- a/daemon/containerd/image_delete.go +++ b/daemon/containerd/image_delete.go @@ -64,7 +64,7 @@ func (i *ImageService) ImageDelete(ctx context.Context, imageRef string, options }() if len(options.Platforms) > 0 && !options.Force { - return nil, cerrdefs.ErrInvalidArgument.WithMessage("Content will be removed from all images referencing this variant. Use —-force to force delete.") + return nil, cerrdefs.ErrInvalidArgument.WithMessage("Content will be removed from all images referencing this variant. Use --force to force delete.") } force := options.Force