-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
compose v2 not sending meaningful user agent string #8901
Comments
Compose v2 is implemented using the Docker CLI plugin mechanism, and as such has no control on the docker API client implementation (we receive an |
maybe this could be a simple but useful improvement to |
This would be extremely helpful. For context I'm part of linuxserver.io and being able to identify which clients and versions our users are using is a big plus for us. Historically we've seen around 1/4 of our users using compose but as people switch to v2 we'll lose that visibility, and we don't want to assume that any |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still something we consider to be a big deal, it's frustrating not to be able to even identify compose v2 users let alone more specific info like the version in use. |
This issue has been automatically marked as not stale anymore due to the recent activity. |
This issue has been automatically marked as not stale anymore due to the recent activity. |
Docker CLI explicitly prevent user to set a custom @thaJeztah do you know the reason? Is this a rule we could relax? |
Based on https://github.com/docker/cli/blob/20923dfbc7fa7e338b6a2ee9df0dd4b713882186/cli/command/cli.go#L270-L274 code explicitly preventing a CLI plugin to use an alternate User-Agent, I'm closing this issue as "not planned" |
Description
When sending a pull request to a registry docker-compose 1.x will send a user agent which includes something like
UpstreamClient(docker-compose/1.29.2 docker-py/5.0.0 Linux/5.4.0-88-generic)
clearly identifying that the client is docker-compose and what its version is. Compose 2.x appears to send a generic user agent in the formUpstreamClient(Docker-Client/unknown-version \(linux\))
.Steps to reproduce the issue:
Describe the results you received:
A user agent string of
docker/20.10.9 go/go1.16.8 git-commit/79ea9d3 kernel/5.4.0-77-generic os/linux arch/amd64 UpstreamClient(Docker-Client/unknown-version \(linux\))
Describe the results you expected:
A user agent string with specific client and version information in keeping with the 1.x behaviour
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker compose version
:Output of
docker info
:Additional environment details:
The text was updated successfully, but these errors were encountered: