Use a specific Terraform version on local files version with Docker
You may need to run a specific version of Terraform locally (without keeping all the binaries of the version). Docker allows to do it easily.
# Run a terraform plan with terraform 0.13.5
docker run -v <local_folder>:/data --workdir=/data hashicorp/terraform:0.13.5 plan
# Run the 0.13upgrade terrform command
docker run -v <local_folder>:/data --workdir=/data hashicorp/terraform:0.13.5 0.13upgrade