mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
We currently depend on the containerd platform-parsing to return typed errdefs errors; the new containerd platforms module does not return such errors, and documents that errors returned should not be used as sentinel errors;c1438e911a/errors.go (L21-L30)Let's type these errors ourselves, so that we don't depend on the error-types returned by containerd, and consider that eny platform string that results in an error is an invalid parameter. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commitcd1ed46d73) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>