Pulling Docker from Private Repository on Docker Hub

If your docker is hosted as private repository on Docker Hub, following the below steps to install the same using Helm

  1. Create a Docker Hub secret in your namespace. On Rancher select your namespace, and navigate to Secrets -> Create -> Registry -> DockerHub. Provide

    • Name: Name of the secret (arbitrary)

    • Username: Docker Hub user id

    • Password: User access token (Make sure original password is NOT given here)

  2. While deploying via Helm add the following into the Helm YAML

image:
    pullPolicy: Always
    repository: openg2p/<your docker repository name>
    tag: <docker tag>
    pullSecrets: <name of the secret>

Last updated

Logo

Copyright © 2024 OpenG2P. This work is licensed under Creative Commons Attribution International LicenseCC-BY-4.0 unless otherwise noted.