Skip to content

Update containerd to v2.1.3 #6040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2025
Merged

Conversation

dmcgowan
Copy link
Member

Fixes various issues with pulling from registries

See https://github.com/containerd/containerd/releases/tag/v2.1.3

Fixes #6033
Fixes #6036

Signed-off-by: Derek McGowan <[email protected]>
@github-actions github-actions bot added the area/dependencies Pull requests that update a dependency file label Jun 19, 2025
retErr = remoteerrors.NewUnexpectedStatusErr(resp)

// Decode registry error if provided
if rerr := retErr.(remoteerrors.ErrUnexpectedStatus); len(rerr.Body) > 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check that this doesn't conflict with #5958

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is still safe because errors.As traverses joined errors and will find an ErrUnexpectedStatus.

// show the unexpected error message and the registry errors. The body
// is always excluded from the unexpected error message. This also allows
// clients to decode into either type.
retErr = errors.Join(rerr, registryErr)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this doing errors.Join instead of just wrapping, iiuc creating error with newline although there is only one error condition really. At least from BuildKit point of view, it is messy that error messages change in a patch release.

@crazy-max crazy-max merged commit 5f16f79 into moby:master Jun 20, 2025
140 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v0.23] ERROR: failed to read expected number of bytes: unexpected EOF [v0.23] 400 Bad Request on authenticated registry in v0.23.0
3 participants