title: Minikube can't pull a container from ECR
body: <p>I'm trying to run a deployment in minikube which uses an image from a private repository hosted in EKS which I have access to.</p>
  <p>I've successfully run the command <code>docker pull *.dkr.ecr.eu-west-1.amazonaws.com/*:2021-09-20-1</code> to pull an image from the private repository hosted in eks.</p>
  <p>However, when I try to apply a deployment in minikube with that image, I get the error
  <code>ErrImagePull </code> which then updates to <code>ImagePullBackOff</code>.</p>
  <p>Describing the pod says that the error is <code>no basic auth credentials</code>.</p>
  <p>I've run the command <code>minikube addons configure registry-creds </code> and then
  <code>minikube addons apply registry-creds </code>, but this hasn't changed anything. Is there something I'm missing?</p>
  <p>I've tried manually creating the secret as well, putting it in the default namespace, and this hasn't helped. I've also attached it as the      <code> imagePullSecrets: - name: registry-creds-ecr</code> in the deployment yaml, and this hasn't changed the outcome.</p>
  <p>What should I do?</p>