How to log into the Minimus registry to pull and verify images
reg.mini.dev
. An active token is required to pull images from the Minimus registry. With an active token, you can pull any of the Minimus images included in your subscription (or available without a subscription).
A token is a type of secret so, like with all secrets, you should ensure that the token isn’t stored where it can be leaked.
docker login
again with an active token to continue working. A valid inline token will not work since docker login
takes priority.
docker logout reg.mini.dev
to reset your access if you prefer to work with an inline token.values.yaml
for Helm charts. Instead, we can create a Kubernetes Secret in the same namespace of a deployment.
Here we name the secret minimus-registry
to align with the values.yaml
files in the Minimus Helm charts.
ImagePullSecrets
parameter to point to the minimus-registry
secret:
docker login
steps above, we can create an encoded config.json
file locally with the value necessary to generate the Kubernetes Secret.
reg.mini.dev
using the steps above.
cat ~/.docker/config.json | base64 -w 0
to base64 encode the credentials.
kubectl -n {namespace} -f minimus-registry.yaml
to create the secret in the application namespace.
ImagePullSecret
parameter to your deployment by changing the spec as shown in the snippet below and redeploy:
docker logout reg.mini.dev
to reset your access and try the pull command again.
Explanation: Most likely, you previously authenticated with the docker login
command and the token has since expired or been deleted. The token from the docker login
command takes precedence over the inline token and this is causing the error.