How debug "ImagePullBackOff" when using local pipeline docker-registry

Hi guys,

I’m configuring Rancher Pipeline to deploy a simple application in NodeJs. The pipeline execution ends with success but I am getting a error on Workload screen:

ImagePullBackOff: Back-off pulling image “127.0.0.1:34908/pipex:latest”

This is my deployment.yaml:

kind: Service
apiVersion: v1
metadata:
  name: pipex-service
spec:
  selector:
    app: pipex
  type: NodePort
  ports:
    - protocol: TCP
      port: 3000
      targetPort: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: pipex-deployment
  namespace: p-mhz4d-pipeline
  labels:
    app: pipex
spec:
  replicas: 1
  selector:
    matchLabels:
      app: pipex
  template:
    metadata:
      labels:
        app: pipex
    spec:
      containers:
      - name: pipex
        image: 127.0.0.1:34908/pipex:latest
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 3000

I’m using docker-registry of pipeline context (ephemeral mode).

I read the official documentation and did not succeed. Can someone tell me the best way to configure a pipeline using the local docker-registry (created by default by Rancher Pipeline)?

Thanks

1 Like

You’ll want to add your private registry to Rancher

And then you can select it from your Pipeline configuration

And if you’re using an insecure private registry, you’ll need to add these lines to your Pipeline yaml (ONLY USE SPACES, NO TABS)

    env:
      PLUGIN_DEBUG: "true"
      PLUGIN_INSECURE: "true"