Skip to content

Custom rulesets when using docker #2392

Answered by BrunoVazCosta
mifriis asked this question in Q&A
Discussion options

You must be logged in to vote

hey @mifriis, those commands worked for me using powershell:

docker run -it -v /c/linting/tmp:/usr/src/spectral my-private-registry.com.br/devops/spectral:6.6.0 lint -r "rule-oas.yaml" "openapi.yaml"

docker run -it -v ${pwd}/tmp:/usr/src/spectral my-private-registry.com.br/devops/spectral:6.6.0 lint -r "rule-oas.yaml" "openapi.yaml"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mifriis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants