Prisma Cloud Compute: How to use Twistcli to scan images in containerd environment
4802
Created On 10/22/23 17:44 PM - Last Modified 11/11/24 16:56 PM
Objective
The objective of this article is to successfully scan images in containerd environment using twistcli.
Environment
- Prisma Cloud Compute Self-Hosted version 31.xx and above
- Prisma Cloud Compute SaaS version 31.xx and above
Procedure
- Pull the image to the environment:
sudo ctr image pull <image name>i.e
sudo ctr image pull docker.io/library/ubuntu:latest
- List the namespace where image is located:
sudo ctr --namespace <namespace> images lsi.e
sudo ctr --namespace default images ls
- Scan the image using twistcli:
sudo ./twistcli images scan --address <address> --user <username> --password <password> --output-file <filename> --containerd --containerd-namespace <namespace> <image id | image name>
Additional Information
Support for twistcli scan for images in containerd environment was added in 31.xx release of the console. Please refer to the documentation for more information.