Minikube can't pull a container from ECR
System Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.
Introduction
When Minikube cannot pull an image from Amazon ECR, the problem is usually not Kubernetes itself. It is almost always one of three things: the image reference is wrong, the Minikube node runtime is not authenticated to ECR, or the Pod is missing a valid imagePullSecrets configuration.
Start With the Exact Image Name
ECR image references are strict. The registry, region, repository name, and tag all need to match exactly.
A valid reference looks like this:
Check these first:
- correct AWS account ID
- correct region
- repository exists in that region
- tag actually exists
If the path is wrong, authentication changes will not help.
Understand Where the Pull Happens
The image pull is performed by the container runtime on the Minikube node, not by Docker on your host shell unless your setup explicitly shares that runtime. That distinction matters.
A host-side login such as this:
Related reading
- Minikube dashboard and any other pods won't schedule
- Minikube does not start, kubectl connection to server was refused
- minikube error - scp /usr/local/bin/localkube No space left on device
- Minikube expose MySQL running on localhost as service
- Minikube exposes random port for loadbalancer type. Can I define specific port?
- Minikube vs Kubernetes in Docker for Windows
- Minikube hangs on the Starting VM step
- Minikube not working in Windows 8
System design interview problems on this topic
- Design a Container Orchestration System: solution and walkthrough
- Design a Code Deployment System: solution and walkthrough
- Design a Task Scheduler: solution and walkthrough
- Design a GPU Cluster Scheduler for ML Training: solution and walkthrough

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseSystem Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.