You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All these commands are treated the same way on the credentials-storing level: > docker login https://foo.bar > docker login http://foo.bar > docker login foo.bar
And docker currently appends an "http" after stripping the protocol, which is not okay at all.
Decisions to store them as HTTP or HTTPS should not be done by the underlying docker-credential-helpers API.
This needs to be fixed very soon as we made the decision to default to HTTPS when no protocol is present and that happens when you specify docker login http://foo.bar too..
The text was updated successfully, but these errors were encountered:
When a user provides a registry URL to authenticate through
docker login
, we currently strip the protocol:https://github.com/docker/cli/blob/master/cli/command/registry.go#L85
Change has been introduced in: moby/moby@67d752a but I can't see the purpose.
Implementation of
ConvertToHostname
is here: https://github.com/moby/moby/blob/8874f80e67c560f44322233bfc22ecd86b85e9e2/registry/auth.go#L212All these commands are treated the same way on the credentials-storing level:
> docker login https://foo.bar
> docker login http://foo.bar
> docker login foo.bar
And
docker
currently appends an"http"
after stripping the protocol, which is not okay at all.Decisions to store them as
HTTP
orHTTPS
should not be done by the underlyingdocker-credential-helpers
API.This needs to be fixed very soon as we made the decision to default to HTTPS when no protocol is present and that happens when you specify
docker login http://foo.bar
too..The text was updated successfully, but these errors were encountered: