Skip to content

Trying to run task docker-build #628

@johnlongo

Description

@johnlongo

Trying to run task docker-build, but getting the following error:
Cannot connect to the Docker daemon at tcp://localhost:2376. Is the docker daemon running?

Below is the task run I ran, should I be using a different docker.io image than the default already defined?
Please advise and Thank You in advance.

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: docker-open-liberty-pet-store-run
spec:
params:

  • name: image
    value: image-registry.openshift-image-registry.svc:5000/open-liberty-pet-store/open-liberty-pet-store:latest
  • name: context
    value: .
  • name: dockerfile
    value: open-liberty-pet-store/Dockerfile
    taskRef:
    name: docker-build
    workspaces:
  • name: source
    persistentVolumeClaim:
    claimName: maven-source-pvc

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions