Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): report more useful User-Agent on engine API requests
When using the Moby/Docker Engine API client, we do not have a useful user agent value being reported. Ideally, in the future, the Docker CLI will set this appropriately for plugins when it initializes the client. For now, manually set it, which is a bit hacky because it requires some casting & manually invoking an option function that's technically meant for initialization. In practice, this is pretty safe - the cast is checked defensively and we ignore any errors (which shouldn't be possible anyway). Signed-off-by: Milas Bowman <milas.bowman@docker.com>
- Loading branch information