A compact command line utility for checking YAML file syntax.
649
A compact command line utility for checking YAML file syntax, using the symfony/yaml parser. The image includes PHP 8.6.0 and symfony/yaml 7.4.23, so you don't need PHP or Composer installed.
Mount the files to check at /workdir:
# Check one file in the current directory
docker run --rm -v "$PWD:/workdir:ro" j13k/yaml-lint config.yml
# Check several files
docker run --rm -v "$PWD:/workdir:ro" j13k/yaml-lint config.yml services.yml
Or read from standard input:
cat config.yml | docker run --rm -i j13k/yaml-lint -
Options:
-q, --quiet Restrict output to syntax errors
-t, --parse-tags Enable parsing of custom YAML tags
-h, --help Display this help
-V, --version Display application version
The exit code is 0 if all input is valid, and 1 for a syntax error, a missing or
unreadable file, or invalid options.
Each release is tagged with its version, such as 1.1.10. These tags move with each release:
1.1: the newest 1.1.x release1: the newest 1.x releaselatest: the newest release, currently 1.1.10Images are built for linux/amd64 and linux/arm64, and the newest release's image is rebuilt
monthly to pick up security fixes.
Content type
Image
Digest
sha256:6a805a19c…
Size
50.3 MB
Last updated
6 days ago
docker pull j13k/yaml-lint