Skip to content

Conversation

@kongfei605
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 19, 2025 02:20
Copy link
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 modernizes the Docker client initialization to support older Docker daemons by enabling API version negotiation. Instead of hardcoding API version 1.44, the clients now automatically negotiate the API version with the Docker daemon.

Key changes:

  • Removed the hardcoded Docker API version constant ("1.44")
  • Added WithAPIVersionNegotiation() to both NewEnvClient() and NewClient() functions
  • This change aligns with existing patterns already used in other parts of the codebase (logs/util/docker/docker.go, inputs/keepalived/types/container/keepalived_container_collector_host.go)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kongfei605 kongfei605 merged commit 22e315f into flashcatcloud:main Dec 19, 2025
9 checks passed
@kongfei605 kongfei605 deleted the docker_up branch December 19, 2025 03:38
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.

Docker client version 1.44 is too new. Maximum supported API version is 1.43

1 participant