
ansible-lint https://github.com/cytopia/docker-ansible-lint/workflows/build/badge.svg](https://github.com/cytopia/docker-ansible-lint/actions?query=workflow%3Abuild) https://github.com/cytopia/docker-ansible-lint/workflows/nightly/badge.svg](https://github.com/cytopia/docker-ansible-lint/actions?query=workflow%3Anightly)
All https://github.com/topics/awesome-ci Docker images
https://github.com/cytopia/docker-ansible-lint • https://github.com/cytopia/docker-ansible • https://github.com/cytopia/awesome-ci • https://github.com/cytopia/docker-bandit • https://github.com/cytopia/docker-black • https://github.com/cytopia/docker-checkmake • https://github.com/cytopia/docker-eslint • https://github.com/cytopia/docker-file-lint • https://github.com/cytopia/docker-gofmt • https://github.com/cytopia/docker-goimports • https://github.com/cytopia/docker-golint • https://github.com/cytopia/docker-jsonlint • https://github.com/cytopia/docker-kubeval • https://github.com/cytopia/docker-linkcheck • https://github.com/cytopia/docker-mypy • https://github.com/cytopia/docker-php-cs-fixer • https://github.com/cytopia/docker-phpcbf • https://github.com/cytopia/docker-phpcs • https://github.com/cytopia/docker-phplint • https://github.com/cytopia/docker-pycodestyle • https://github.com/cytopia/docker-pydocstyle • https://github.com/cytopia/docker-pylint • https://github.com/cytopia/docker-terraform-docs • https://github.com/cytopia/docker-terragrunt-fmt • https://github.com/cytopia/docker-terragrunt • https://github.com/cytopia/docker-yamlfmt • https://github.com/cytopia/docker-yamllint
View https://github.com/cytopia/docker-ansible-lint/blob/master/Dockerfiles/ on GitHub.
Available Architectures: amd64, i386, arm64
Tiny Alpine-based multistage-build dockerized version of https://github.com/ansible/ansible-lint[1].
The image is built nightly against the latest stable version of ansible-lint and pushed to Dockerhub.
[1] Official project: https://github.com/ansible/ansible-lint
Rolling releaess
The following Docker image tags are rolling releases and are built and updated every night.
https://github.com/cytopia/docker-ansible-lint/workflows/nightly/badge.svg](https://github.com/cytopia/docker-ansible-lint/actions?query=workflow%3Anightly)
| Docker Tag | Git Ref | Ansible Lint | Flavour | Available Architectures |
|---|---|---|---|---|
latest | master | latest | default | amd64, i386, arm64 |
alpine | master | latest | Alpine | amd64, i386, arm64 |
6 | master | 6.x.x | default | amd64, i386, arm64 |
alpine-6 | master | 6.x.x | Alpine | amd64, i386, arm64 |
5 | master | 5.x.x | default | amd64, i386, arm64 |
alpine-5 | master | 5.x.x | Alpine | amd64, i386, arm64 |
Point in time releases
The following Docker image tags are built once and can be used for reproducible builds. Its version never changes so you will have to update tags in your pipelines from time to time in order to stay up-to-date.
https://github.com/cytopia/docker-ansible-lint/workflows/build/badge.svg](https://github.com/cytopia/docker-ansible-lint/actions?query=workflow%3Abuild)
| Docker Tag | Git Ref | Ansible Lint | Flavour | Available Architectures |
|---|---|---|---|---|
latest-0.7 | tag: 0.7 | latest | default | amd64, i386, arm64 |
alpine-latest-0.7 | tag: 0.7 | latest | Alpine | amd64, i386, arm64 |
6-0.7 | tag: 0.7 | 6.x.x | default | amd64, i386, arm64 |
alpine-6-0.7 | tag: 0.7 | 6.x.x | Alpine | amd64, i386, arm64 |
5-0.7 | tag: 0.7 | 5.x.x | default | amd64, i386, arm64 |
alpine-5-0.7 | tag: 0.7 | 5.x.x | Alpine | amd64, i386, arm64 |
The working directory inside the Docker container is /data/ and should be mounted locally to
the root of your project where your .ansible-lint config file is located.
Display usage
bash# Single playbook docker run --rm -v $(pwd):/data cytopia/ansible-lint playbook.yml # All playbooks via wildcard docker run --rm -v $(pwd):/data cytopia/ansible-lint *.yml # Single role (run from within the role's root) docker run --rm -v "$(pwd)":"/data/$(basename "$(pwd)" )" -e ANSIBLE_ROLES_PATH="/data" cytopia/ansible-lint "/data/$(basename "$(pwd)" )/tests/test.yml"
GitLabCI requires a shell entrypoint to be specified. See here for details: https://github.com/cytopia/docker-ansible-lint/issues/14.
yamldefault: image: name: cytopia/ansible-lint:latest entrypoint: ["/bin/sh", "-c"] stages: - lint ansible-linter: stage: lint script: - ansible-lint *.yaml only: - merge_requests - master
Save yourself from installing lot's of dependencies and pick a dockerized version of your favourite linter below for reproducible local or remote CI tests:
| GitHub | DockerHub | Type | Description |
|---|---|---|---|
| https://github.com/cytopia/awesome-ci | https://hub.docker.com/r/cytopia/awesome-ci | Basic | Tools for git, file and static source code analysis |
| https://github.com/cytopia/docker-file-lint | https://hub.docker.com/r/cytopia/file-lint | Basic | Baisc source code analysis |
| https://github.com/cytopia/docker-linkcheck | https://hub.docker.com/r/cytopia/file-lint | Basic | Search for URLs in files and validate their HTTP status code |
| https://github.com/cytopia/docker-ansible | https://hub.docker.com/r/cytopia/ansible | Ansible | Multiple versions and flavours of Ansible |
| https://github.com/cytopia/docker-ansible-lint | https://hub.docker.com/r/cytopia/ansible-lint | Ansible | Lint Ansible |
| https://github.com/cytopia/docker-gofmt | https://hub.docker.com/r/cytopia/gofmt | Go | Format Go source code [1] |
| https://github.com/cytopia/docker-goimports | https://hub.docker.com/r/cytopia/goimports | Go | Format Go source code [1] |
| https://github.com/cytopia/docker-golint | https://hub.docker.com/r/cytopia/golint | Go | Lint Go code |
| https://github.com/cytopia/docker-eslint | https://hub.docker.com/r/cytopia/eslint | Javascript | Lint Javascript code |
| https://github.com/cytopia/docker-jsonlint | https://hub.docker.com/r/cytopia/jsonlint | JSON | Lint JSON files [1] |
| https://github.com/cytopia/docker-kubeval | https://hub.docker.com/r/cytopia/kubeval | K8s | Lint Kubernetes files |
| https://github.com/cytopia/docker-checkmake | https://hub.docker.com/r/cytopia/checkmake | Make | Lint Makefiles |
| https://github.com/cytopia/docker-phpcbf | https://hub.docker.com/r/cytopia/phpcbf | PHP | PHP Code Beautifier and Fixer |
| https://github.com/cytopia/docker-phpcs | https://hub.docker.com/r/cytopia/phpcs | PHP | PHP Code Sniffer |
| https://github.com/cytopia/docker-phplint | https://hub.docker.com/r/cytopia/phplint | PHP | PHP Code Linter [1] |
| https://github.com/cytopia/docker-php-cs-fixer | https://hub.docker.com/r/cytopia/php-cs-fixer | PHP | PHP Coding Standards Fixer |
| https://github.com/cytopia/docker-bandit | https://hub.docker.com/r/cytopia/bandit | Python | A security linter from PyCQA |
| https://github.com/cytopia/docker-black | https://hub.docker.com/r/cytopia/black | Python | The uncompromising Python code formatter |
| https://github.com/cytopia/docker-mypy | https://hub.docker.com/r/cytopia/mypy | Python | Static source code analysis |
| https://github.com/cytopia/docker-pycodestyle | https://hub.docker.com/r/cytopia/pycodestyle | Python | Python style guide checker |
| https://github.com/cytopia/docker-pydocstyle | https://hub.docker.com/r/cytopia/pydocstyle | Python | Python docstyle checker |
| https://github.com/cytopia/docker-pylint | https://hub.docker.com/r/cytopia/pylint | Python | Python source code, bug and quality checker |
| https://github.com/cytopia/docker-terraform-docs | https://hub.docker.com/r/cytopia/terraform-docs | Terraform | Terraform doc generator (TF 0.12 ready) [1] |
| https://github.com/cytopia/docker-terragrunt | https://hub.docker.com/r/cytopia/terragrunt | Terraform | Terragrunt and Terraform |
| https://github.com/cytopia/docker-terragrunt-fmt | https://hub.docker.com/r/cytopia/terragrunt-fmt | Terraform | terraform fmt for Terragrunt files [1] |
| https://github.com/cytopia/docker-yamlfmt | https://hub.docker.com/r/cytopia/yamlfmt | Yaml | Format Yaml files [1] |
| https://github.com/cytopia/docker-yamllint | https://hub.docker.com/r/cytopia/yamllint | Yaml | Lint Yaml files |
[1] Uses a shell wrapper to add enhanced functionality not available by original project.
Visit https://github.com/cytopia/makefiles for dependency-less, seamless project integration and minimum required best-practice code linting for CI. The provided Makefiles will only require GNU Make and Docker itself removing the need to install anything else.
MIT License
Copyright (c) 2019 https://github.com/cytopia
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。




探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务