2016-05-02 16:23:38 +00:00
2016-05-12 16:40:50 +00:00
# clairctl
2016-05-02 16:23:38 +00:00
2016-05-12 16:40:50 +00:00
> Tracking container vulnerabilities with Clair Control
2016-05-02 16:23:38 +00:00
2016-05-12 16:40:50 +00:00
Clairctl is a lightweight command-line tool doing the bridge between Registries as Docker Hub, Docker Registry or Quay.io, and the CoreOS vulnerability tracker, Clair.
Clairctl will play as reverse proxy for authentication.
2016-05-02 16:23:38 +00:00
# Usage
[![asciicast ](https://asciinema.org/a/41461.png )](https://asciinema.org/a/41461)
# Reporting
2016-05-12 16:40:50 +00:00
**clairctl** get vulnerabilities report from Clair and generate HTML report
2016-05-02 16:23:38 +00:00
2016-05-12 16:40:50 +00:00
clairctl can be used for Docker Hub and self-hosted Registry
2016-05-02 16:23:38 +00:00
# Command
```
2016-05-17 16:15:53 +00:00
Analyze your docker image with Clair, directly from your registry.
2016-05-02 16:23:38 +00:00
Usage:
2016-05-12 16:40:50 +00:00
clairctl [command]
2016-05-02 16:23:38 +00:00
Available Commands:
2016-05-17 16:15:53 +00:00
analyze Analyze Docker image
2016-05-12 16:40:50 +00:00
health Get Health of clairctl and underlying services
2016-05-02 16:23:38 +00:00
login Log in to a Docker registry
logout Log out from a Docker registry
pull Pull Docker image information
push Push Docker image to Clair
report Generate Docker Image vulnerabilities report
2016-05-12 16:40:50 +00:00
version Get Versions of clairctl and underlying services
2016-05-02 16:23:38 +00:00
Flags:
2016-05-17 16:31:53 +00:00
--config string config file (default is ./.clairctl.yml)
2016-05-02 16:23:38 +00:00
--log-level string log level [Panic,Fatal,Error,Warn,Info,Debug]
2016-05-12 16:40:50 +00:00
Use "clairctl [command] --help" for more information about a command.
2016-05-02 16:23:38 +00:00
```
# Optional Configuration
```yaml
clair:
port: 6060
healthPort: 6061
uri: http://clair
report:
path: ./reports
format: html
```
# Remarks
1. Analyzing Official Docker image is disallowed. You cannot pull layers from image you don't own.
# Contribution and Test
Go to /contrib folder