Docker Community Forums

Share and learn in the Docker community.

Kubernetes cannot pull local Docker image

Applying .yaml file always gives me an error

Normal Scheduled 24m default-scheduler Successfully assigned default/pocdemo-deployment-64fb59d6b7-dgvdt to docker-desktop
Normal SandboxChanged 24m (x4 over 24m) kubelet Pod sandbox changed, it will be killed and re-created.
Normal Pulling 23m (x3 over 24m) kubelet Pulling image “pocdemo:latest”
Warning Failed 23m (x3 over 24m) kubelet Failed to pull image “pocdemo:latest”: rpc error: code = Unknown desc = Error response from daemon: pull access denied for pocdemo, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied
Warning Failed 23m (x3 over 24m) kubelet Error: ErrImagePull
Warning Failed 23m (x6 over 24m) kubelet Error: ImagePullBackOff
Normal BackOff 4m27s (x91 over 24m) kubelet Back-off pulling image “pocdemo:latest”

Tried Docker logout/login, doesn’t help. The image does exist in the local and visible applying Docker ls command.

Any suggestions?