Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore(deps): update Docker client SDK to v29#10202

Merged
DmitriyLewen merged 2 commits into
aquasecurity:mainaquasecurity/trivy:mainfrom
DmitriyLewen:update-docker-client-v29Copy head branch name to clipboard
Feb 18, 2026
Merged

chore(deps): update Docker client SDK to v29#10202
DmitriyLewen merged 2 commits into
aquasecurity:mainaquasecurity/trivy:mainfrom
DmitriyLewen:update-docker-client-v29Copy head branch name to clipboard

Conversation

@DmitriyLewen

Copy link
Copy Markdown
Contributor

Description

Update Docker client SDK from github.com/docker/docker v28 to github.com/moby/moby v29.
Starting with Docker Engine v29, the Go module path has changed from github.com/docker/docker to modular packages:

  • github.com/moby/moby/client
  • github.com/moby/moby/api

Changes

Import path migration

  • Replace github.com/docker/docker/clientgithub.com/moby/moby/client
  • Replace github.com/docker/docker/api/types/imagegithub.com/moby/moby/api/types/image
  • Replace github.com/docker/docker/api/types/registrygithub.com/moby/moby/api/types/registry

API changes

  • Replace deprecated NewClientWithOpts() with New()
  • Remove WithAPIVersionNegotiation() (now enabled by default)
  • Update ImageSave, ImageLoad, ImageInspect, ImageHistory to use new result wrapper types
  • Update ImageTag, ImageRemove, ImagePush to use option structs
  • Remove deprecated fields from InspectResponse: Container, ContainerConfig, DockerVersion
  • Update RootFS type from api/types to api/types/image

Compatibility

Files using testcontainers-go retain github.com/docker/docker/api/types/container imports for compatibility, as testcontainers-go has not yet migrated to the new module path (see
testcontainers/testcontainers-go#3496).

References

  • moby/moby#51501 — Enable API-version negotiation by default, deprecate WithAPIVersionNegotiation
  • moby/moby#51227 — Use option structs for ImageTag, ImageRemove, ImageSearch, etc.
  • moby/moby#51236 — Wrap return values of ImageSave, ImageLoad, ImageInspect, ImageHistory
  • moby/moby#51103 — Remove deprecated fields from InspectResponse
  • moby/moby#48057 — Move RootFS to api/types/image

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@github-actions github-actions Bot added the apidiff Indicates Go API changes relevant to library consumers (CLI compatibility may be unaffected) label Feb 17, 2026
@aqua-bot
aqua-bot requested a review from a team February 17, 2026 07:33
Update from github.com/docker/docker v28 to github.com/moby/moby v29.

Key changes:
- Use new modular imports: github.com/moby/moby/client, github.com/moby/moby/api
- Replace deprecated NewClientWithOpts() with New()
- Update ImageSave/ImageLoad/ImageTag/ImagePush/ImageRemove API signatures
- Remove deprecated fields from InspectResponse (Container, DockerVersion, ContainerConfig)
- Update RootFS type to image.RootFS
Remove DockerVersion from expected values in Docker Engine tests
(field no longer returned by API). Keep Container and DockerVersion
for Registry tests (values come from image tarball, not API).
@DmitriyLewen DmitriyLewen removed the apidiff Indicates Go API changes relevant to library consumers (CLI compatibility may be unaffected) label Feb 17, 2026
@DmitriyLewen
DmitriyLewen removed the request for review from a team February 17, 2026 09:42
@aquasecurity aquasecurity deleted a comment from github-actions Bot Feb 17, 2026
@DmitriyLewen
DmitriyLewen marked this pull request as ready for review February 17, 2026 10:40
@DmitriyLewen
DmitriyLewen added this pull request to the merge queue Feb 18, 2026
Merged via the queue into aquasecurity:main with commit fb05196 Feb 18, 2026
14 checks passed
@DmitriyLewen
DmitriyLewen deleted the update-docker-client-v29 branch February 18, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.