Skip to content

Instantly share code, notes, and snippets.

@Overbryd
Created January 5, 2024 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Overbryd/2f7b0de0300709c7faa76133c14eebd6 to your computer and use it in GitHub Desktop.
Save Overbryd/2f7b0de0300709c7faa76133c14eebd6 to your computer and use it in GitHub Desktop.
Containerd private registry authentication

Containerd private registry authentication (Gitlab)

  1. Obtain a private access token (or a group deploy token) with read_registry rights.
  2. Encode the username + token $ echo -n 'USERNAME:TOKEN' | base64
  3. Configure containerd
[plugins."io.containerd.grpc.v1.cri".registry.configs."registry.gitlab.com".auth]
  auth = "ENCODED_TOKEN"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment