terraform-docs
Public repository for ragedunicorn docker terraform-docs images
212

A lightweight terraform-docsâ
CLI built on Alpine Linux. The official terraform-docs release is
checksum-verified at build time, then shipped as a non-root, single-purpose image
with terraform-docs as its entrypoint.
# Pull latest version
docker pull ragedunicorn/terraform-docs:latest
# Or pull a specific version
docker pull ragedunicorn/terraform-docs:0.24.0-alpine3.22.1-1
# Show the version
docker run --rm ragedunicorn/terraform-docs:latest --version
# Generate markdown docs for the module in the current directory
docker run --rm -v "$(pwd)":/workspace ragedunicorn/terraform-docs:latest markdown .
terraform-docs is the entrypoint, nothing else bundledterraform-docs userlinux/amd64 and linux/arm64docker run --rm -v "$(pwd)":/workspace ragedunicorn/terraform-docs:latest markdown table .
docker run --rm -v "$(pwd)":/workspace \
ragedunicorn/terraform-docs:latest markdown table --output-file README.md .
docker run --rm -v "$(pwd)":/workspace ragedunicorn/terraform-docs:latest json .
docker run --rm --user "$(id -u):$(id -g)" \
-v "$(pwd)":/workspace ragedunicorn/terraform-docs:latest markdown table --output-file README.md .
--output-file. Printing to stdout works read-only,
but injecting docs into a file needs write access. The default mount is writable.--output-file replaces the content between
<!-- BEGIN_TF_DOCS --> and <!-- END_TF_DOCS --> in the target file.terraform-docs
user; match your host user with --user "$(id -u):$(id -g)" so files stay yours..terraform-docs.yml in the module directory is picked up
automatically to control format, sections and sort order.This image uses versioning that includes all component versions:
Format: {terraform_docs_version}-alpine{alpine_version}-{build_number}
0.24.0-alpine3.22.1-1 - Initial release with terraform-docs 0.24.0 and Alpine 3.22.10.24.0-alpine3.22.1-2 - Rebuild of the same versions (base CVE patch, fixes)0.24.0-alpine3.22.2-1 - Alpine Linux patch update0.25.0-alpine3.22.1-1 - terraform-docs version update (build resets to 1)This image's build tooling is MIT-licensed. The bundled terraform-docs binary is distributed by the terraform-docs project under the MIT License as well. See the terraform-docs LICENSEâ .
Content type
Image
Digest
sha256:55429790aâĶ
Size
10.5 MB
Last updated
about 1 month ago
docker pull ragedunicorn/terraform-docs