oras icon indicating copy to clipboard operation
oras copied to clipboard

Remove dependency on docker CLI

Open shizhMSFT opened this issue 3 years ago • 2 comments
trafficstars

oras CLI leverage github.com/docker/cli for reading / writing docker config file for login and logout. It is possible that using an old version of oras CLI with a new version of docker CLI at the same time may cause loss on some config fields.

shizhMSFT avatar Jun 22 '22 15:06 shizhMSFT

@shizhMSFT Does it mean ORAS CLI will need to implement its own authentication system?

FeynmanZhou avatar Sep 15 '22 15:09 FeynmanZhou

@shizhMSFT Does it mean ORAS CLI will need to implement its own authentication system?

No, the new implementation will still be compatible with the config.json of the docker CLI.

shizhMSFT avatar Sep 16 '22 02:09 shizhMSFT

Pending on https://github.com/oras-project/oras-credentials-go

shizhMSFT avatar Mar 22 '23 10:03 shizhMSFT

Done?

TerryHowe avatar May 31 '23 14:05 TerryHowe

There is an indirect dependency https://github.com/oras-project/oras/blob/main/go.mod#L19

TerryHowe avatar May 31 '23 14:05 TerryHowe

ORAS CLI still have deps on github.com/docker/docker-credential-helpers v0.7.0. Resolving this issue is depending on https://github.com/oras-project/oras-credentials-go/issues/67 and merging of https://github.com/oras-project/oras-credentials-go/pull/68

qweeah avatar Jun 05 '23 03:06 qweeah