Opentofu Docker image base on Alpine linux, for efficient container management.
100K+
Maintained by:
Oowy team
Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Based on Alpine Linux 3.20
latest1.9.1-alpine3.20 1.9.0-alpine3.20Based on Alpine Linux 3.19
1.8.9-alpine3.19 1.8.8-alpine3.19 1.8.7-alpine3.19 1.8.6-alpine3.19 1.8.5-alpine3.19 1.8.4-alpine3.19 1.8.3-alpine3.19 1.8.2-alpine3.19 1.8.1-alpine3.19 1.8.0-alpine3.191.7.8-alpine3.19 1.7.7-alpine3.19 1.7.6-alpine3.19 1.7.5-alpine3.19 1.7.4-alpine3.19 1.7.3-alpine3.19 1.7.2-alpine3.19 1.7.1-alpine3.19 1.7.0-alpine3.19Based on Alpine Linux 3.18
1.6.2-alpine3.18 1.6.1-alpine3.18 1.6.0-alpine3.18amd64, arm64v8Opentofu is an infrastructure as code (IaC) tool that allows you to build, change, and version infrastructure safely and efficiently. This includes low-level components such as compute instances, storage, and networking, as well as high-level components such as DNS entries, SaaS features, etc. Opentofu can manage both existing service providers and custom in-house solutions.
Running Opentofu inside a Docker container requires more configuration than running the Opentofu CLI executables directly. Unless you need container isolation, we recommend using [the non-containerized Opentofu CLI packages](the non-containerized Opentofu CLI packages).
The team publishes a Docker image to this repository for each official release of Opentofu CLI. Each versioned image includes the Opentofu CLI release with the same version number.
These images wrap the Opentofu executable, allowing you to run Opentofu subcommands by passing in their names and arguments as part of docker run.
For example, the command below uses the 'latest' tag to generate a 'plan' using the most recent version of Opentofu:
docker run -i -t oowy/opentofu:latest tofu plan
Note that for production use, we recommend specifying a specific version instead of using latest.
You will likely need to further configure your container so that Opentofu can access your configuration files and provider credentials. This could include mounting your configuration into the container, setting the working directory to refer to your configuration, and passing in environment variables and credentials files for the providers you intend to use. The docker run documentation lists the options you can use to customize the container environment. You could also use these images as a base for your own images. For example, this would be helpful if you wanted to to pre-set CLI Configuration settings as part of your image.
Open issues about Opentofu binary on the main Opentofu repository.
Content type
Image
Digest
sha256:5aac35435…
Size
37.8 MB
Last updated
12 months ago
docker pull oowy/opentofu