https://pulumi.com logo
g

green-morning-1318

05/11/2019, 6:04 PM
hi 🙂 I'm trying out a bunch of the Pulumi examples (and trying to build my own based on that 😅). When I run
pulumi up
I get the error:
Copy code
Diagnostics:
  pulumi:providers:docker (default):
    error: no resource plugin 'docker' found in the workspace or on your $PATH
Where can I find the list of supported plugins? I read that I'd need to run
pulumi plugin install ...
but I can't find the right command for the docker plugin
w

white-balloon-205

05/11/2019, 6:10 PM
You should in general get plugins as part of running
npm install
(or equivalent). In general, you should not need to run
pulumi plugin install
. Curious: 1. Are you using JS/TS or Python? 2. Did you run
npm install
or similar? And did it succeed? 3. What OS are you on? 4. What does
pulumi plugin ls
show you? To unblock, you should be able to just run
pulumi plugin install resource docker 0.17.0
.
g

green-morning-1318

05/11/2019, 6:15 PM
running
pulumi plugin install resource docker 0.17.0
did indeed solve it 🙂 to answer your questions: 1) Go 2) The go get for pulumi-docker didn't work and threw an error (
cannot use (*Provider)(nil) (type *Provider)...
) 3) macOS Mojave 4) it didn't have anything before, but now it shows the docker plugin and my docker container runs
thanks for the help @white-balloon-205 🙂
w

white-balloon-205

05/11/2019, 6:17 PM
1) Go
Ahh - indeed - this process is not automated for Go. This is tracked in https://github.com/pulumi/pulumi/issues/1549. Any Go example/tutorial should include the explicit mention of this required step. Curious which one you were using that missed this?
2) The go get for pulumi-docker didn't work and threw an error (
cannot use (*Provider)(nil) (type *Provider)...
)
Any more details on what you did here (and what guide you were following?). This works for me:
Copy code
$ go get <http://github.com/pulumi/pulumi-docker/sdk/go/|github.com/pulumi/pulumi-docker/sdk/go/>...
g

green-morning-1318

05/11/2019, 6:23 PM
1) I was looking at the https://github.com/pulumi/examples/tree/master/aws-go-s3-folder and trying to see if I could rebuild my own stack using Pulumi (which now seems to be going pretty good). It didn't mention any installs of plugins, so I could have missed it. 2) my bad... typo in the command 😓
w

white-balloon-205

05/11/2019, 6:31 PM
g

green-morning-1318

05/11/2019, 6:32 PM
thank you 😄 🙏