Jupyter kernel
Private registries

Working with images in private registries

In order to use use an image from a private registry, you need to authenticate with the registry. This can be done by creating a personal access token (PAT) and using it to authenticate with the registry.

Creating a PAT for DockerHub

  1. Go to DockerHub (opens in a new tab) and log in.
  2. Select Personal Access Tokens.
  3. Click on Generate new token.
  4. Select the access permission Read-only for the token.

Creating a PAT for GitHub Container Registry

  1. Create a PAT on GitHub (opens in a new tab) with read:packages scope.

Using the PAT to authenticate with the registry

CLI

Pass the PAT to the registry using the --registry-pat flag.

q8sctl execute \
    --registry-pat PAT \
    --kubeconfig path-to-kubeconfig \
    --image image-name \
    program.py

Jupyter

Pass the PAT as an environment variable REGISTRY_PAT.

REGISTRY_PAT=PAT jupyter lab