tflint
Public repository for ragedunicorn docker tflint images
299

A lightweight TFLintâ CLI built on
Alpine Linux. The official TFLint release is cosign- and checksum-verified at
build time, then shipped as a non-root, single-purpose image with tflint as
its entrypoint.
# Pull latest version
docker pull ragedunicorn/tflint:latest
# Or pull a specific version
docker pull ragedunicorn/tflint:0.63.1-alpine3.22.1-1
# Show the version
docker run --rm ragedunicorn/tflint:latest --version
# Lint Terraform code in the current directory
docker run --rm -v "$(pwd)":/workspace:ro ragedunicorn/tflint:latest --chdir=/workspace
tflint is the entrypoint, nothing else bundledtflint userlinux/amd64 and linux/arm64tflint --init plugin downloads over HTTPSdocker run --rm -v "$(pwd)":/workspace:ro ragedunicorn/tflint:latest --chdir=/workspace
docker run --rm \
-v "$(pwd)":/workspace \
-v tflint-plugin-cache:/home/tflint/.tflint.d/plugins \
ragedunicorn/tflint:latest --chdir=/workspace --init
docker run --rm -v "$(pwd)":/workspace:ro \
ragedunicorn/tflint:latest --chdir=/workspace --format=json
docker run --rm --user "$(id -u):$(id -g)" \
-v "$(pwd)":/workspace:ro ragedunicorn/tflint:latest --chdir=/workspace
/workspace read-only if you like.tflint --init. That requires network access and a
writable plugin directory (~/.tflint.d/plugins, overridable with
TFLINT_PLUGIN_DIR). The bundled terraform ruleset works offline.tflint user;
match your host user with --user "$(id -u):$(id -g)" so files stay yours.0 = no issues, 2 = issues found, 1 = an application error.This image uses versioning that includes all component versions:
Format: {tflint_version}-alpine{alpine_version}-{build_number}
0.63.1-alpine3.22.1-1 - Initial release with TFLint 0.63.1 and Alpine 3.22.10.63.1-alpine3.22.1-2 - Rebuild of the same versions (base CVE patch, fixes)0.63.1-alpine3.22.2-1 - Alpine Linux patch update0.64.0-alpine3.22.1-1 - TFLint version update (build resets to 1)This image's build tooling is MIT-licensed. The bundled TFLint binary is distributed by the terraform-linters project under the Mozilla Public License 2.0 (MPL-2.0), an OSI-approved open source license. See the TFLint LICENSEâ .
Content type
Image
Digest
sha256:05d14a56fâĶ
Size
20.1 MB
Last updated
about 1 month ago
docker pull ragedunicorn/tflint