As part of our introduction to self-service publishing in the Terraform Registry, this copy of the provider has been archived, and ownership has been transferred to active maintainers in the community. Please see the new location on the Terraform Registry: https://registry.terraform.io/providers/kreuzwerker/docker/latest
This issue was originally opened by @johschmitz as hashicorp/terraform#24965. It was migrated here as a result of the provider split. The original body of the issue is below.
Current Terraform Version
Terraform v0.12.25
Use-cases
Deploy Docker container with Terraform Provider
Attempted Solutions
Terraform provides a feature to deploy a docker container using SSH
However there seems to be no explicit way to provide the path to an SSH identity file (private key).
The only implicit workaround seems to be creating an SSH config file on the machine that runs Terraform to specify the identity file.
This issue was originally opened by @johschmitz as hashicorp/terraform#24965. It was migrated here as a result of the provider split. The original body of the issue is below.
Current Terraform Version
Use-cases
Deploy Docker container with Terraform Provider
Attempted Solutions
Terraform provides a feature to deploy a docker container using SSH
However there seems to be no explicit way to provide the path to an SSH identity file (private key). The only implicit workaround seems to be creating an SSH config file on the machine that runs Terraform to specify the identity file.
Proposal
Add two options:
identity_file
passphrase
Use this information in the SSH systemcall.
References
none