-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
-
False
-
None
-
False
-
Documentation (Ref Guide, User Guide, etc.)
-
-
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Ā