Sign inSign up

zavoloklom/dclint

By zavoloklom

•Updated about 1 year ago

A command-line tool for validating and enforcing best practices in Docker Compose files.

Image
Developer tools
1

100K+

zavoloklom/dclint repository overview

⁠Docker Compose Linter

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.

⁠Usage

⁠Pull the Docker Image

First, pull the Docker image from the repository:

docker pull zavoloklom/dclint
⁠Run the Linter in Docker

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 .
⁠Linting Specific Files in Docker

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
⁠Display Help in Docker

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⁠.

⁠License

This project is licensed under the MIT License. See the LICENSE⁠ file for more information.

⁠Contact

If you have any questions or suggestions, feel free to reach out:

Tag summary

Content type

Image

Digest

sha256:dd6e0faa9…

Size

44.3 MB

Last updated

about 1 year ago

docker pull zavoloklom/dclint