Merge pull request #59 from davidxia/patch1

Fix typo in doc
This commit is contained in:
Quentin Machu 2016-01-04 17:22:30 -05:00
commit 4dc9ea39dd

View File

@ -22,13 +22,13 @@ You will need to let it do its initial vulnerability update, which may take some
If you are running Clair locally (ie. compiled or local Docker), If you are running Clair locally (ie. compiled or local Docker),
``` ```
analyze-local-image <Docker Image ID> analyze-local-images <Docker Image ID>
``` ```
Or, If you run Clair remotely (ie. boot2docker), Or, If you run Clair remotely (ie. boot2docker),
``` ```
analyze-local-image -endpoint "http://<CLAIR-IP-ADDRESS>:6060" -my-address "<MY-IP-ADDRESS>" <Docker Image ID> analyze-local-images -endpoint "http://<CLAIR-IP-ADDRESS>:6060" -my-address "<MY-IP-ADDRESS>" <Docker Image ID>
``` ```
Clair needs access to the image files. If you run Clair locally, this tool will store the files in the system's temporary folder and Clair will find them there. It means if Clair is running in Docker, the host's temporary folder must be mounted in the Clair's container. If you run Clair remotely, this tool will run a small HTTP server to let Clair downloading them. It listens on the port 9279 and allows a single host: Clair's IP address, extracted from the `-endpoint` parameter. The `my-address` parameters defines the IP address of the HTTP server that Clair will use to download the images. With boot2docker, these parameters would be `-endpoint "http://192.168.99.100:6060" -my-address "192.168.99.1"`. Clair needs access to the image files. If you run Clair locally, this tool will store the files in the system's temporary folder and Clair will find them there. It means if Clair is running in Docker, the host's temporary folder must be mounted in the Clair's container. If you run Clair remotely, this tool will run a small HTTP server to let Clair downloading them. It listens on the port 9279 and allows a single host: Clair's IP address, extracted from the `-endpoint` parameter. The `my-address` parameters defines the IP address of the HTTP server that Clair will use to download the images. With boot2docker, these parameters would be `-endpoint "http://192.168.99.100:6060" -my-address "192.168.99.1"`.