Hello guys did any body face "*error:* spawn docke...
# general
c
Hello guys did any body face "*error:* spawn docker ENOENT" while creating an ECS ?
awsxecrRepository (xoe-expres-app-repo): 19:59:29   error: Error: ' docker build ./app -t 12fda807-container' failed with exit code 1 19:59:29     19:59:29     at /tmp/build/23bf5af8/source-repo/infra/node_modules/@pulumi/docker.ts59215 19:59:29     at Generator.next (<anonymous>) 19:59:29     at fulfilled (/tmp/build/23bf5af8/source-repo/infra/node_modules/@pulumi/docker/docker.js1858) 19:59:29     at processTicksAndRejections (internal/process/task_queues.js955) 19:59:29   19:59:29   error: spawn docker ENOENT
i am running CI/CD Concourse .. using below platform
platform: linux image_resource: type: docker-image source: repository: pulumi/pulumi-nodejs tag: "3.6.1"
s
Hey Harsha. Have you tried running
docker build ./app -t 12fda807-container
locally to see if your image build correctly ?
Literally seconds ago I had the same issue on my environment and it indicates my Dockerfile has instructions that can't be completed. So, running the
docker build
command will help you diagnose what's going on
c
Locally on Mac machine this works..
but when running this on linux machine i.e., a worker node of type:docker-image / repository : pulumi/pulumi-nodejs it fails
@steep-sunset-89396 any suggestion on the container to use ? i was using below
--- platform: linux image_resource: type: docker-image source: repository: pulumi/pulumi-nodejs tag: "3.6.1"
are there any containers available which has pre build docker image with pulumi & nodejs ?
s
I don't know of any container image to be honest. I'm running my own on k8s with a dock-in-docker deployment so I can build my images inside kubernetes. But this is all assembled manually.
Do you mind to share some details why you're running this on Linux and not your mac ?
219 Views