Skip to content

Commit a0b4703

Browse files
coolapsobendrucker
andauthored
docs: add docker example with --init (terraform-linters#2242)
Co-authored-by: Ben Drucker <bvdrucker@gmail.com>
1 parent 6c8067c commit a0b4703

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ Instead of installing directly, you can use the Docker image:
6666
docker run --rm -v $(pwd):/data -t ghcr.io/terraform-linters/tflint
6767
```
6868

69+
To download plugins, you can override the entrypoint to a shell (`sh`) to run `--init` and the main command in a single `docker run` command:
70+
71+
```console
72+
docker run --rm -v $(pwd):/data -t --entrypoint /bin/sh ghcr.io/terraform-linters/tflint -c "tflint --init && tflint"
73+
```
74+
6975
### GitHub Actions
7076

7177
If you want to run on GitHub Actions, [setup-tflint](https://github.com/terraform-linters/setup-tflint) action is available.

0 commit comments

Comments
 (0)