Skip to content
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

feat: negotiate docker client version #2258

Closed
wants to merge 1 commit into from
Closed

feat: negotiate docker client version #2258

wants to merge 1 commit into from

Conversation

dpeckett
Copy link

Instead of hardcoding the docker client version we should negotiate a version at runtime. Version 1.22 is very out of date and no longer is supported by modern daemon versions.

@rhatdan
Copy link
Member

rhatdan commented Jan 20, 2024

@mtrmac PTAL

@TomSweeneyRedHat
Copy link
Member

This is a different approach to solving the problem as #2260

Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Thanks!

  • There is WithAPIVersionNegotiation; that’s a bit shorter than calling NegotiateAPIVersion explicitly, and more similar to what the Docker CLI does.
  • The unit tests run unprivileged, in a fairly arbitrary environment; we can’t assume a running Docker daemon to be available and accepting connections. In particular the proposed test implementation doesn’t work in our CI.

#2260 is, right now, probably not the ideal solution, but it’s a bit closer to it, so let’s discuss there.

@mtrmac mtrmac added the kind/bug A defect in an existing functionality (or a PR fixing it) label Jan 23, 2024
@mtrmac
Copy link
Collaborator

mtrmac commented Jan 24, 2024

#2260 was merged. Still, thanks for your contribution!

@mtrmac mtrmac closed this Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A defect in an existing functionality (or a PR fixing it)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants