Hello There i was trying to create ECS using pulum...
# getting-started
c
Hello There i was trying to create ECS using pulumi.. but its failing with error: Error: ' docker build ./app -t 12fda807-container' failed with exit code 1.. Any idea / help appreciated..
Copy code
iagnostics:
194229
Copy code
awsx:ecr:Repository (xoe-expres-app-repo):
194229
Copy code
error: Error: ' docker build ./app -t 12fda807-container' failed with exit code 1
194229
Copy code
```
19:42:29
at /tmp/build/23bf5af8/source-repo/infra/node_modules/@pulumi/docker.ts59215``` 194229
Copy code
at Generator.next (<anonymous>)
194229
Copy code
at fulfilled (/tmp/build/23bf5af8/source-repo/infra/node_modules/@pulumi/docker/docker.js:18:58)
194229
Copy code
```
19:42:29
error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Copy code
19:42:29
time="2021-07-13T234227Z" level=error msg="failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: no such file or directory"```
i am using platform: linux image_resource: type: docker-image source: repository: pulumi/pulumi
if i use repository : pulumi/pulumi-nodejs then i get
Copy code
Diagnostics:
192648
Copy code
awsx:ecr:Repository (xoe-expres-app-repo):
192648
Copy code
error: spawn docker ENOENT
192648
Copy code
```
19:26:48
error: Error: No 'docker' command available on PATH: Please install to use container 'build' mode.
Copy code
19:26:48
at /tmp/build/23bf5af8/source-repo/infra/node_modules/@pulumi/docker.ts11519``` 192648
Copy code
at Generator.throw (<anonymous>)
192648
Copy code
at rejected (/tmp/build/23bf5af8/source-repo/infra/node_modules/@pulumi/docker/docker.js:19:65)
192648
Copy code
at processTicksAndRejections (internal/process/task_queues.js:95:5)
b
Copy code
Cannot connect to the Docker daemon at unix:///var/run/docker.sock
you don't have docker running on your local machine. make sure the service is started
c
Hi @billowy-army-68599 any suggestion which container is best suited ? 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 ?
b
@calm-gpu-56173 are you trying to build a docker image from inside a docker container?
c
yes concourse ci/cd design is such way
we spin up a container & then run scripts
--- platform: linux image_resource: type: docker-image source: repository: pulumi/pulumi tag: "latest"
b
Right, but you’ll need to enable docker in docker for this to work
It won’t work by default
c
agree
error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
b
You’ll need to build your own image
We don’t have one with support for this I’m afraid