Issue using local image

Hello all,

Sorry for my english, I’m french.

I’m a beginner on Kube despite a little professional experience on Openshift. But using docker and manipulate images I’m a real newbie.

My issue, rather my incomprehension, is the following:

  • I built an image using docker image php:8-3-apache to have php-apache-mariadb on the same (with a dockerfile installing mariadb-client) and named “php-apache-mariadb”

docker built . -t php-apache-mariadb:local

  • Build is good and I can see the image in the registry with “docker images”

php-apache-mariadb local 4c217c3dd1eb 3 minutes ago 610MB

But when I apply my deployment, my pod falls in “ErrImagePull” status with this message (kubectl describe pod pod_name):

Failed to pull image “php-apache-mariadb:local”: Error response from daemon: pull access denied for php-apache-mariadb, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied

:roll_eyes:
I don’t understand why this error while I see my image.
I tried a lot of things found on the internet but nothing works, always the same issue.

My goal is to have my private images on local registry and not on docker hub or other.


kubectl version
Client Version: v1.31.1
Kustomize Version: v5.4.2
Server Version: v1.31.0

Kubernetes cluster installed on 4 VMs using VirtualBox (for learning and testing):

  • 1 master
  • 3 workers

As I’ve received no answer or help her I’ve found the solution to use Harbor as registry and it’s work.