Coder.comC
Coder.com4y ago
7 replies
Kot

Using Docker provider that depends on another

Is there a way for me to specify a provider that depends on another? I want to use Docker to provision a container once I spin up a VM on another provider. Like this:
provider "docker" {
  host = "tcp://${fly_machine.machine[0].privateip}:2375"
}

Is there any way to do this? When I'm creating the template, Coder spits out: Error: Error initializing Docker client: unable to parse docker host ''
Was this page helpful?