Skip to content

ctr does not read /etc/containerd/config.toml credential settings when pulling images from ghcr.io #6539

Answered by AkihiroSuda
effy-coding asked this question in Q&A
Discussion options

You must be logged in to vote

ctr does not use CRI API, so it does not read any configuration from [plugins."io.containerd.grpc.v1.cri"].

If you want to debug the CRI config, you have to use crictl.

If you aren't interested in CRI and you just want to run a containerd container with GHCR, you can just use ctr --user USER:PASS:

Usage: "user[:password] Registry user and password",

See also nerdctl: https://github.com/containerd/nerdctl/blob/master/docs/registry.md#github-container-registry-ghcr

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@effy-coding
Comment options

@effy-coding
Comment options

@AkihiroSuda
Comment options

@effy-coding
Comment options

@AkihiroSuda
Comment options

Answer selected by effy-coding
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@AkihiroSuda
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants
Converted from issue

This discussion was converted from issue #6538 on February 10, 2022 06:40.