A command-line tool for validating and enforcing best practices in Docker Compose files.
100K+
Docker Compose Linter (DCLint) is a utility designed to analyze and validate Docker Compose configuration files. It helps identify errors, style violations, and potential issues in Docker Compose files, ensuring your configurations are robust, maintainable, and free from common pitfalls.
First, pull the Docker image from the repository:
docker pull zavoloklom/dclint
To lint your Docker Compose files, use the following command. This command mounts your current working directory
${PWD} to the /app directory inside the container and runs the linter:
docker run -t --rm -v ${PWD}:/app zavoloklom/dclint .
If you want to lint a specific Docker Compose file or a directory containing such files, specify the path relative to your project directory:
docker run -t --rm -v ${PWD}:/app zavoloklom/dclint /app/path/to/docker-compose.yml
To display help and see all available options:
docker run -t --rm -v ${PWD}:/app zavoloklom/dclint -h
For more information about available options and formatters, please refer to the CLI Reference and Formatters Reference.
This project is licensed under the MIT License. See the LICENSE file for more information.
If you have any questions or suggestions, feel free to reach out:
Content type
Image
Digest
sha256:dd6e0faa9…
Size
44.3 MB
Last updated
about 1 year ago
docker pull zavoloklom/dclint