Usage of Running clair via docker is wrongly written.

Command line needs --net=host.
This commit is contained in:
odg0318 2017-11-07 13:23:40 +09:00
parent e00e57cc2f
commit 821fb240bc

View File

@ -77,7 +77,7 @@ If this error is raised, manually execute `docker-compose start clair`.
$ mkdir $PWD/clair_config
$ curl -L https://raw.githubusercontent.com/coreos/clair/master/config.yaml.sample -o $PWD/clair_config/config.yaml
$ docker run -d -e POSTGRES_PASSWORD="" -p 5432:5432 postgres:9.6
$ docker run -d -p 6060-6061:6060-6061 -v $PWD/clair_config:/config quay.io/coreos/clair-git:latest -config=/config/config.yaml
$ docker run --net=host -d -p 6060-6061:6060-6061 -v $PWD/clair_config:/config quay.io/coreos/clair-git:latest -config=/config/config.yaml
```
#### Source