Install docker.
Use module only on ubuntu/debian system. Tested on ubuntu 18.04, 20.04.
Use this module in your tf file:
data "local_file" "ssh_key_private" {
filename = pathexpand("~/.ssh/id_rsa")
}
module "docker" {
source = "git::https://github.com/a-kataev/terraform-modules.git//docker"
connection_hosts = ["111.122.133.144"]
connection_private_key = data.local_file.ssh_key_private.content
}
Update provider plugins:
$ terraform init
Apply changes:
$ terraform apply
terraform >= 0.12