Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How To Pull Container Images From a Private Repository
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
Some pods will need to launched using container images stored in a private repository.
Environment
- Platform9 Managed Kubernetes - All Versions
- Private Docker/ECR/GitHub Container Repository
Procedure
- You can use the following base command to create a Secret which can be used to pull images from a private repository
kubectl create secret docker-registry. The login details will depend on which service provider you are using.- For a Private Docker Repository
$ kubectl create secret docker-registry regcred --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-password> --docker-email=<your-email> - For ECR
$ kubectl create secret docker-registry regcred --docker-server=<aws_account_id.dkr.ecr.region.amazonaws.com> --docker-username=AWS --docker-password=<ECR_Login_Password> --docker-email=<AWS_Email_Account>
- For a Private Docker Repository
##
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message