Does anyone aware about this issue when I am trying to use Docker image from loc . . .

Venkat:
Does anyone aware about this issue when I am trying to use Docker image from local repository in Minikube.

Events:
  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Scheduled  71s                default-scheduler  Successfully assigned cd-example-dev/gke-example-cbd7ccf5f-mqslg to minikube
  Normal   Pulling    18s (x3 over 71s)  kubelet            Pulling image "cd-example-gce:latest"
  Warning  Failed     14s (x3 over 65s)  kubelet            Failed to pull image "cd-example-gce:latest": rpc error: code = Unknown desc = Error response from daemon: pull access denied for cd-example-gce, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
  Warning  Failed     14s (x3 over 65s)  kubelet            Error: ErrImagePull
  Normal   BackOff    1s (x3 over 65s)   kubelet            Back-off pulling image "cd-example-gce:latest"
  Warning  Failed     1s (x3 over 65s)   kubelet            Error: ImagePullBackOff
vbattumarthi@Venkateswaras-MacBook-Pro gke-yaml % docker images
REPOSITORY                    TAG       IMAGE ID       CREATED        SIZE
cd-example-gce                latest    78246c26d31d   4 hours ago    469MB

Vamsee Krishna:
Hi @Venkat, do you have any authorization setup in your local repo ?

Venkat:
Don’t have authorization setup

Vamsee Krishna:
please paste the command you are using to run the container. Also paste the image details from repo.

Venkat:
This issue is happening in pod creation

Venkat:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: gke-example
  namespace: cd-example-dev
spec:
  selector:
    matchLabels:
      app: gke-example
  template:
    metadata:
      labels:
        app: gke-example
    spec:
      serviceAccountName: cd-example-dev
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
      containers:
      - name: gke-example
        securityContext: {}
        image: "cd-example-gce"
        imagePullPolicy: IfNotPresent
        env:
        - name: PROJECT_ID
          value: aw-dev-cd-example
        livenessProbe:
          initialDelaySeconds: 15
          failureThreshold: 3
          httpGet:
            path: /
            port: 3000
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        readinessProbe:
          httpGet:
            path: /
            port: 3000
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources: 
          requests:
            memory: "64Mi"
            cpu: "250m"
          limits:
            memory: "128Mi"
            cpu: "500m"

Venkat:
kubectl apply -f deployment.yaml

Mouhamadou Moustapha Camara:
HI @Venkat,

Use this link to see step by step how to achieve it
https://levelup.gitconnected.com/two-easy-ways-to-use-local-docker-images-in-minikube-cd4dcb1a5379

Venkat:
Thanks @Mouhamadou Moustapha Camara This example helped me.