0

I am trying to build image using argo and paketo but I am getting this error

ERROR: failed to build: failed to fetch builder image 'index.docker.io/paketobuildpacks/builder:base': Cannot connect to the Docker
daemon at unix:///var/run/docker.sock. Is the docker daemon running?
time="2023-08-25T12:39:48 UTC" level=info msg="sub-process exited" argo=true error="<nil>"

Here is my code

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: paketo-demo-
spec:
  entrypoint: run-tasks
  templates:
    - name: run-tasks
      steps:
        - - name: git-clone
            template: git-clone
        - - name: build-and-push
            template: build-and-push

    - name: git-clone
      container:
        image: alpine/git
        args: ["clone", "https://github.com/paketo-buildpacks/samples", "/workspace"]
        volumeMounts:
          - name: workspace
            mountPath: /workspace

    - name: build-and-push
      container:
        image: buildpacksio/pack
        args: [
          "build", "paketo-demo",
          "--builder", "paketobuildpacks/builder:base"
        ]
        volumeMounts:
          - name: workspace
            mountPath: /workspace
          - name: pack-cache
            mountPath: /pack-cache

  volumes:
    - name: workspace
      emptyDir: {}
    - name: pack-cache
      emptyDir: {}
Hernan Garcia
  • 1,416
  • 1
  • 13
  • 24
etranz
  • 891
  • 2
  • 10
  • 29

0 Answers0