Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 789 Bytes

clair-standalone-running.adoc

File metadata and controls

25 lines (22 loc) · 789 Bytes

Running Clair

  1. Use the podman run command to run the Clair container, exposing the HTTP endpoint port that you specified in the configuration tool, in this case 8081:

    $ sudo podman run -d --rm --name clairv4 \
      -p 8081:8081 -p 8089:8089 \
      -e CLAIR_CONF=/clair/config.yaml -e CLAIR_MODE=combo \
      -v /etc/clairv4/config:/clair:Z \
      {productrepo}/{clairimage}:{productminv}
  2. Next, restart the Quay container using the updated configuration file containing the scanner settings:

    $ sudo podman run -d --rm -p 80:8080 -p 443:8443  \
       --name=quay \
       -v $QUAY/config:/conf/stack:Z \
       -v $QUAY/storage:/datastorage:Z \
       {productrepo}/{quayimage}:{productminv}