Kot
Kot
Explore posts from servers
CCoder.com
Created by Kot on 10/4/2022 in #help
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"
}
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 ''
8 replies