Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-1738

wrong order of options on cmd line for disconnected clair

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • documentation
    • False
    • False
    • Quay Enterprise
    • Undefined

      6.6. Configuring Clair for Disconnected Environments

      (https://access.redhat.com/documentation/en-us/red_hat_quay/3.4/html/manage_red_hat_quay/clair-v4#configuring_clair_for_disconnected_environments)

       Documentation reads in step 2:

      podman run -it --rm -v /etc/clairv4/config:/cfg:Z -v $(pwd):/updaters:Z --entrypoint /bin/clairctl registry.redhat.io/quay/clair-rhel8:v3.4.2 export-updaters --config /cfg/config.yaml /updaters/updaters.gz

      But this will create this error output:

      Incorrect Usage: flag provided but not defined: -config

      NAME:
      clairctl export-updaters - run updaters and export results

      USAGE:
      clairctl export-updaters [command options] [out]

      DESCRIPTION:
      Run configured exporters and export to a file.

      A configuration file is needed to run this command, see 'clairctl help'
      for how to specify one.

      OPTIONS:
      --strict Return non-zero exit when updaters report errors. (default: false)
      --help, -h show help (default: false)

      flag provided but not defined: -config

       

      It should be like this:

      podman run -it --rm -v /etc/clairv4/config:/cfg:Z -v $(pwd):/updaters:Z --entrypoint /bin/clairctl registry.redhat.io/quay/clair-rhel8:v3.4.2 --config /cfg/config.yaml export-updaters /updaters/updaters.gz

       

      Same for the second cmd line!

              rhn-support-stevsmit Steven Smith
              rhn-gps-lbohnsack Lars Bohnsack
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: