Skip to content

Handle Docker API version mismatch in script/build#14436

Merged
thavaahariharangit merged 1 commit into
mainfrom
fix/docker-api-compat-build-script
Mar 13, 2026
Merged

Handle Docker API version mismatch in script/build#14436
thavaahariharangit merged 1 commit into
mainfrom
fix/docker-api-compat-build-script

Conversation

@thavaahariharangit
Copy link
Copy Markdown
Contributor

@thavaahariharangit thavaahariharangit commented Mar 13, 2026

What are you trying to accomplish?

Make script/build resilient to a Docker API version mismatch where the Docker client is newer than the daemon, which currently fails with:

ERROR: failed to build: Error response from daemon: client version 1.53 is too new. Maximum supported API version is 1.43: driver not connecting

Anything you want to highlight for special attention from reviewers?

How will you know you've accomplished your goal?

After this fix, script/build bundler completes successfully without the Docker API mismatch error.

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

@thavaahariharangit thavaahariharangit requested a review from a team as a code owner March 13, 2026 14:40
Copilot AI review requested due to automatic review settings March 13, 2026 14:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the shared build script helpers to avoid failures when the local Docker CLI is newer than the Docker daemon by automatically pinning the client API version to the server’s supported API version during builds.

Changes:

  • Add ensure_compatible_docker_api_version helper to detect and export DOCKER_API_VERSION from docker version (server API).
  • Invoke the helper at the start of docker_build so script/build <ecosystem> works without manual environment configuration.

@thavaahariharangit thavaahariharangit merged commit 38ac0a6 into main Mar 13, 2026
87 checks passed
@thavaahariharangit thavaahariharangit deleted the fix/docker-api-compat-build-script branch March 13, 2026 15:21
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.

3 participants