Skip to content

Add Docker API version negotiation to fix daemon compatibility#110

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-dynamodb-image-pull-error
Draft

Add Docker API version negotiation to fix daemon compatibility#110
Copilot wants to merge 2 commits intomainfrom
copilot/fix-dynamodb-image-pull-error

Conversation

Copy link
Contributor

Copilot AI commented Feb 7, 2026

Docker client was hardcoded to API v1.43, causing failures with daemons requiring v1.44+:

failed to pull image: Error response from daemon: client version 1.43 is too old. 
Minimum supported API version is 1.44

Changes

Added client.WithAPIVersionNegotiation() to all Docker client instantiations:

  • internal/proc/container.go - Run() and stop() methods
  • hack/examples.go - updateExample() function
// Before
cli, err := client.NewClientWithOpts(client.FromEnv)

// After
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())

Client now auto-negotiates API version on first request, maintaining compatibility with both older and newer Docker daemons.

Original prompt

[dynamodb] (failed) failed to pull image: Error response from daemon: client version 1.43 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix DynamoDB image pull error due to client version Add Docker API version negotiation to fix daemon compatibility Feb 7, 2026
Copilot AI requested a review from alexec February 7, 2026 17:20
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