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

Obtaining clairctl binary from Clair pod

XMLWordPrintable

      This is a bug affecting Clair image.

      According to the documentation ,we are suggesting the following command for copying the clairctl binary from a running pod to your local host.

      $ oc -n quay-enterprise cp example-registry-clair-app-64dd48f866-6ptgw:/usr/bin/clairctl ./clairctl 

      The above command will never work because oc cp command requires the 'tar' binary present inside the container image.
      Clair image doesn't have tar installed so the oc cp command will fail with the following error:

      time="2023-02-16T14:56:48Z" level=error msg="exec failed: unable to start container process: exec: \"tar\": executable file not found in $PATH" 
      command terminated with exit code 255

      The solution would be to include tar binary inside Clair imageĀ 

              rhn-support-stevsmit Steven Smith
              rhn-support-ggeraci Giovanni Geraci
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: