[RHACS / StackRox] : The roxctl image scan command fails with an automatically integrated Azure Container Registry
Issue
- The
roxctl image scan
command fails with an automatically integrated Azure Container Registry. - When executing the command, the following error is output.
$ roxctl -e "$ROX_CENTRAL_ADDRESS" image scan --image registry-name.azurecr.io/namespace/image-name:tag
Error: rpc error: code = Internal desc = image enrichment error: error scanning image: registry-name.azurecr.io/namespace/image-name:tag error: scanning "registry-name.azurecr.io/namespace/image-name:tag" with scanner "Stackrox Scanner":
Expected status code 2XX. Received 500 Internal Server Error. Body: {"Error":{"Message":"error processing image \"registry-name.azurecr.io/namespace/image-name:tag\": Head \"https://registry-name.azurecr.io/v2/namespace/image-name/manifests/tag\": dial tcp 20.191.160.139:443: connect: connection refused"}}
- How to scan images in Azure Container Registry?
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Red Hat Advanced Cluster Security for Kubernetes (RHACS)
- 3.73 or later
- Azure Container Registry (ACR)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.