Reputation: 944
Given the limitations of the Terraform Docker Provider (see Terraform Docker Provider: "Bind" port to specific network), is there a way to execute a command ON the Docker host AFTER a Container has been started?
Since you can't specify what Docker Network to attach specific ports{} blocks to, maybe I can start my CNF with just one network defined so Terraform will bind the ports to that network, then add the other networks to the Container after that and start or restart it? My Docker host is remote, otherwise I would have just been using a shell script to start things correctly without the Terraform limitations.
Upvotes: 2
Views: 719