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

Bring back support for really old Docker versions #7553

Merged
merged 1 commit into from
Jul 11, 2018

Conversation

exekias
Copy link
Contributor

@exekias exekias commented Jul 10, 2018

Introducing API version negotiation (#7165) brough support for new
Docker versions, but broke support for versions in EOL.

This change puts old API version (1.22) back on the default fallback,
plus introduces version hardcoding through DOCKER_API_VERSION
environment variable.

I added some integration tests to check things are working.

Fixes #7542

Introducing API version negotiation (elastic#7165) brough support for new
Docker versions, but broke support for versions in EOL.

This change puts old API version (1.229 back on the default fallback,
plus introduces version hardcoding through `DOCKER_API_VERSION`
environment variable.

I added some integration tests to check things are working.

Fixes elastic#7542
@exekias exekias force-pushed the support-older-dockers branch from 036b3c9 to c8d91cd Compare July 10, 2018 11:08
if ping.APIVersion == "" {
ping.APIVersion = "1.24"
}
if os.Getenv("DOCKER_API_VERSION") == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is DOCKER_API_VERSION set by default? If not it seems this code is always called also for a newer version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DOCKER_API_VERSION is used to hardcode client API version. If it's unset (which is common), beats should negotiate client API version to ensure we use one compatible with the server

@ruflin ruflin merged commit 2215d24 into elastic:master Jul 11, 2018
@ruflin
Copy link
Contributor

ruflin commented Jul 11, 2018

I think we will also need some docs around this to explain users they can use DOCKER_API_VERSION to set old versions or their own.

exekias added a commit to exekias/beats that referenced this pull request Jul 11, 2018
Introducing API version negotiation (elastic#7165) brough support for new
Docker versions, but broke support for versions in EOL.

This change puts old API version (1.229 back on the default fallback,
plus introduces version hardcoding through `DOCKER_API_VERSION`
environment variable.

I added some integration tests to check things are working.

Fixes elastic#7542

(cherry picked from commit 2215d24)
@exekias exekias added v6.3.2 and removed needs_backport PR is waiting to be backported to other branches. labels Jul 11, 2018
ruflin pushed a commit that referenced this pull request Jul 12, 2018
…rsions (#7567)

Introducing API version negotiation (#7165) brough support for new
Docker versions, but broke support for versions in EOL.

This change puts old API version (1.229 back on the default fallback,
plus introduces version hardcoding through `DOCKER_API_VERSION`
environment variable.

I added some integration tests to check things are working.

Fixes #7542

(cherry picked from commit 2215d24)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…cker versions (elastic#7567)

Introducing API version negotiation (elastic#7165) brough support for new
Docker versions, but broke support for versions in EOL.

This change puts old API version (1.229 back on the default fallback,
plus introduces version hardcoding through `DOCKER_API_VERSION`
environment variable.

I added some integration tests to check things are working.

Fixes elastic#7542

(cherry picked from commit cecb9a8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants