Run any version of Terrform using Docker
So our friend Docker comes around for another usecase.
Run Terraform (any version) from Docker
In this example, we will try and configure Terraform 1.4.0 through Docker, so that we don’t need to install it on our host system.
|
|
To use it, we simply run a Terraform command:
|
|
Next let’s try another Terraform version as well
|
|
To use it, like before:
|
|
Run both versions next to one another
You can even run both versions next to one another, as proof:
|
|
The output:
|
|