https://pulumi.com logo
Title
c

calm-gpu-56173

07/14/2021, 12:01 AM
Hello guys did any body face "*error:* spawn docker ENOENT" while creating an ECS ?
awsx:ecr:Repository (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.ts:592:15 19:59:29     at Generator.next (<anonymous>) 19:59:29     at fulfilled (/tmp/build/23bf5af8/source-repo/infra/node_modules/@pulumi/docker/docker.js:18:58) 19:59:29     at processTicksAndRejections (internal/process/task_queues.js:95:5) 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

steep-sunset-89396

07/14/2021, 12:14 AM
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

calm-gpu-56173

07/14/2021, 11:54 AM
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

steep-sunset-89396

07/14/2021, 11:09 PM
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 ?