Reference a container image from a private registry
Problem
We struggle to deploy the charm's container image when it's provided by a private container registry.
Provide a working setup.
Analysis
According our current understanding of the Juju controller implementation, Juju either pulls a public image from Docker Hub or an alternative, known image registry implementation or uploads a local OCI image. Alternatively, the OCI specification seems to allow to specify an OCI resource, including authentication details of the related image registry, as a JSON or YAML document, e.g.
{
"ImageName": "my.private.repo.com/a/b:latest",
"username": "harry",
"password": "supersecretpassword"
}
registrypath: my.private.repo.com/a/b:latest
username: harry
password: supersecretpassword
Related discussions
- Private image registry (discussion) - Charmhub chat
- Create a minimal Kubernetes charm (discussion) - Charmhub forum