-
Notifications
You must be signed in to change notification settings - Fork 18.9k
containerd-integration: set correct user-agent #44828
Copy link
Copy link
Closed
Labels
area/distributionImage DistributionImage Distributionarea/imagesImage ServiceImage Servicecontainerd-integrationIssues and PRs related to containerd integrationIssues and PRs related to containerd integrationkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.
Metadata
Metadata
Assignees
Labels
area/distributionImage DistributionImage Distributionarea/imagesImage ServiceImage Servicecontainerd-integrationIssues and PRs related to containerd integrationIssues and PRs related to containerd integrationkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.
Type
Projects
Status
Done
Description
The containerd-integration currently uses containerd's user-agent (
containerd/$VERSION) as user-agent. We should change the user-agent to match the pre-containerd integration user-agent;From a slack thread;
user-agent can be customised when using the containerd client code; https://github.com/containerd/containerd/blob/cf13b64bcb833ab5b5bbaa8b4ce75c6fd9556eed/remotes/docker/resolver.go#L144-L146
PRs and code related to "upstream" client (used for non-containerd integration);
moby/dockerversion/useragent.go
Lines 74 to 78 in 62296f9
For the non-containerd daemon, the user-agent looks like;
docker/23.0.0-rc.2 go/go1.19.4 git-commit/9fd3a43 kernel/5.15.0-50-generic os/linux arch/amd64 UpstreamClient(Docker-Client/23.0.0-rc.2 \x5C(linux\x5C))Which includes;
Version of the CLI (Client) is included in that as UpstreamClient;
UpstreamClient(Docker-Client/23.0.0-rc.2 \x5C(linux\x5C))We can continue using the same approach, either;