I'd like to use the official Hashicorp image to run Terraform rather than install manually. I have followed the docs on dockerhub but there aren't any details about how where to mount volumes - e.g. with 'main.tf' in current directory:
> docker run -i -t hashicorp/terraform:light init main.tf
Terraform initialized in an empty directory!
The directory has no Terraform configuration files. You may begin working
with Terraform immediately by creating Terraform configuration files.
> docker run -i -t hashicorp/terraform:light plan main.tf
stat main.tf: no such file or directory
Where do I mount the files? Is there any docuementation beyond the dockerhub page that I can also use?