All guides

Docker images and private registries

Use private images from Docker Hub, GHCR or GCP Artifact Registry.

  1. 1Connect a registry

    Workspace settings → Registries. Credentials are verified with a real login, then used automatically for images from that host.

    bash
    # GitHub (read:packages 토큰 / token)
    echo $GHCR_TOKEN | oc registry add ghcr.io -u my-user --password-stdin
    # GCP Artifact Registry (서비스 계정 키 / service account key)
    oc registry add asia-northeast3-docker.pkg.dev -u _json_key --password-file key.json
  2. 2Deploy the image

    bash
    oc service create --image ghcr.io/acme/api:1.4.0 --port 8080 --wait

Related guides