pulumi / examples

Infrastructure, containers, and serverless apps to AWS, Azure, GCP, and Kubernetes... all deployed with Pulumi
https://www.pulumi.com
Apache License 2.0
2.39k stars 880 forks source link

example https://github.com/pulumi/examples/tree/master/docker-ts-multi-container-app fails on windows #1268

Open nagkumar opened 2 years ago

nagkumar commented 2 years ago

What happened?

The example https://github.com/pulumi/examples/tree/master/docker-ts-multi-container-app fials to execute on windows, however does work ok on wsl.

The error seen on running this on windows is

`G:\DWork\osource\cloudc\devops\pulumi\ts\docker\imgcreate\multi>pu Previewing update (dev)

View Live: https://app.pulumi.com/nagkumar/docker-ts-multi-container-app/dev/previews/b9d49fbe-cacb-453a-bdb6-40224821c023

 Type                         Name                               Plan     Info
 pulumi:pulumi:Stack          docker-ts-multi-container-app-dev
 ├─ docker:image:Image        appImage
 └─ docker:index:RemoteImage  redisImage                                  1 error

Diagnostics: docker:index:RemoteImage (redisImage): error: 1 error occurred:

`

Steps to reproduce

run the above example

Expected Behavior

it should create docker image on windows too

Actual Behavior

it fails with error

Output of pulumi about

No response

Additional context

May be it is the same issue as listed here

https://www.vgemba.net/terraform/terraform-docker-provider-windows-issue/

in the context of terraform

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

nagkumar commented 2 years ago

This can be solved by seeing

pulumi config set docker:host "npipe:////.//pipe//docker_engine" as said in https://github.com/pulumi/pulumi/issues/8626

may be reame.md of this example should contain this step.