Docker: failed to pull image (oversized record received with length 20527 Docker: failed to pull image (oversized record received with length 20527 kubernetes kubernetes

Docker: failed to pull image (oversized record received with length 20527


Found a workaround to this:

If you are using minikube, you can use the 'ssh' command to go into the minikube VM:

minikube ssh

This will bring up the shell. Here you can pull docker images from docker hub by entering command:

docker pull <repo_name>

By doing this, you'll then pull the image into the minikube VM.

Following this, the next step is to exit the minikube ssh shell and run the following command on the command line:

kubectl.exe run <YOUR_POD_NAME> --image=<docker_repo_name>

where kubectl.exe is the kubernetes executable and is the name of the repository that you want to pull the latest image from

for example:

kubectl.exe run ubuntu-test-3 --image=rm12345/ubuntutest3:latest

This should run successfully.

Note that in order for a pod to run successfully in kubernetes, you must ensure that your Docker container has an entry point which will run the application indefinitely. if it does not, then you may see a 'CrashBackLoop' status on the pod, rather than the 'running' status.