Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Negotiate Docker API version in client (elastic#14115)
The libbeat Docker client wasn't negotiate the Docker API version after updating the Docker package versions. This changes the Docker client to use the `NewClientWithOpts` function rather than the deprecated `NewClient` function. When the client is constructed we will pass in the `WithAPIVersionNegotiation` option if no version is explicitly configured in the DOCKER_API_VERSION environment variable. Upon the first request the client will negotiate the API version. Fixes changes made in elastic#13415.
- Loading branch information