-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support /etc/containerd/certs.d/<HOST:PORT>/hosts.toml
#642
Conversation
a1ffe2b
to
d0942a3
Compare
d0942a3
to
adc6d27
Compare
/etc/containerd/certs.d/<HOST:PORT>/hosts.toml
/etc/containerd/certs.d/<HOST:PORT>/hosts.toml
adc6d27
to
0a2d909
Compare
if acArg == host { | ||
if auth.RegistryToken != "" { | ||
// Even containerd/CRI does not support RegistryToken as of v1.4.3, | ||
// so, nobody is actually using RegistryToken? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not really necessary and the only use of it I know of was for Docker swarm. It solves the problem of sending unscoped credentials to nodes, however, the tokens end up being long lived and passed directly to registries. The better solution is using scoped refresh tokens. It would be good to support scoping somewhere here, although that does not work well with the docker login
approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, the current goal is to just emulate Swarm-less docker login
Signed-off-by: Akihiro Suda <[email protected]>
Signed-off-by: Akihiro Suda <[email protected]>
Signed-off-by: Akihiro Suda <[email protected]>
See `docs/registry.md` Fix issue 639 `nerdctl login` still ignore the hosts dir. Fixed in the next commit. Signed-off-by: Akihiro Suda <[email protected]>
Depends on containerd/containerd PR 6396 Signed-off-by: Akihiro Suda <[email protected]>
0a2d909
to
2d9569e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix #639
Depends on: