Skip to content

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