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
{{ message }}
Repository navigation
nerdctl login should warn about passing along an explicit scheme #3052
While pull and push do not allow explicit schemes (as image identifiers do not), both docker and nerdctl login DO allow it, albeit ignoring them entirely.
Our suggestion is to:
warn the user that this syntax is only supported as a convenience and that the scheme is ignored (which docker should do too)
This will impact #3046 - which I believe still matters as there should be a way to talk TLS even with localhost.
changed the title [-]`nerdctl login` should warn about passing along an explicit scheme and should ignore it entirely[/-][+]`nerdctl login` should warn about passing along an explicit scheme[/+]on Jun 4, 2024
Hi @apostasie,
the scheme is not ignored during nerdctl login, there is a fallback from https to http in specific justified situations where we can add a warning message to notify the user
Activity
[-]`nerdctl login` should warn about passing along an explicit scheme and should ignore it entirely[/-][+]`nerdctl login` should warn about passing along an explicit scheme[/+]fahedouch commentedon Jun 17, 2024
Hi @apostasie,
the scheme is not ignored during
nerdctl login, there is a fallback fromhttpstohttpin specific justified situations where we can add a warning message to notify the userapostasie commentedon Jun 17, 2024
@fahedouch any user specified scheme in the url is just ignored entirely.
Try for example:
nerdctl login http://index.docker.ioThe fact that we fallback from https to http (typically through --insecure-registry) is orthogonal.
fahedouch commentedon Jun 18, 2024
It looks like a bug. It is not the intended behavior. Let me check this.