engine-api icon indicating copy to clipboard operation
engine-api copied to clipboard

Migrate docker/cliconfig to engine-api ?

Open pdalpra opened this issue 9 years ago • 1 comments

Hi Docker developers :)

I just heard about this project, and having a officially supported Go binding to interact with Docker API is great.

However, like other Go bindings such as go-dockerclient that provide it, it would be very nice to be able to get a map[string]types.AuthConfig from ~/.docker/config.json/.dockercfg. In docker/docker, this feature is provided by the cliconfig.

Would it be possible to migrate at least the reading part of cliconfig to engine-api ?

I'd be glad to provide a PR if you like.

pdalpra avatar Feb 22 '16 18:02 pdalpra

I really have mixed feelings about this. That structure is easy enough to build a parser yourself, but I understand that it could be convenient to have a canonical implementation.

FWIW, registry authentication will have some changes in 1.11 that we'd need to consider if we move this forward:

  1. External stores just landed in https://github.com/docker/docker/pull/20107
  2. Long lived tokens rather than user/password will probably land :soon: https://github.com/docker/engine-api/pull/108

calavera avatar Feb 29 '16 22:02 calavera