> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kosli.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.kosli.com/feedback

```json
{
  "path": "/troubleshooting/docker_api_version_error",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Docker API version error in GitHub Actions

> How to fix the "client version 1.51 is too new" error when running the Kosli CLI with Docker operations.

## Error

```
Error response from daemon: client version 1.47 is too new. Maximum supported API version is 1.45
```

<Info>
  **Kosli CLI v2.15.1+:** This error is resolved automatically. The CLI now negotiates the Docker API version with the daemon, so it adapts to whatever Docker Engine version is available. Upgrade to v2.15.1 or later and no workaround is needed.
</Info>

## Solution for CLI versions before v2.15.1

Set the `DOCKER_API_VERSION` environment variable in your workflow:

```yaml theme={"theme":"dracula","languages":{"custom":["/languages/rego.json"]}}
env:
  DOCKER_API_VERSION: "1.45"
```

## Context

Prior to v2.15.1, the Kosli CLI defaulted to a fixed Docker API version (e.g., 1.47), which could be higher than what the Docker daemon on the host supports. This caused Docker operations (`--artifact-type docker`) to fail with a "client version is too new" error.

From v2.15.1 onwards, the CLI automatically negotiates the API version with the Docker daemon, eliminating this issue.
