Skip to content

How do I scan container images with cnspec #1287

Closed Answered by chris-rock
chris-rock asked this question in Q&A
Discussion options

You must be logged in to vote

cnspec offers two diferent ways to scan container images:

  • cnspec vuln runs only the vulnerability check
  • cnspec scan runs the vulnerability check and security policies

The following examples use the cnspec vuln command to illustrate how it works best. For bettter security coverage we recommmend using cnspec scan. The arguments are the same for both commands so it is easy to switch between both.

cnspec can scan multiple targets. For container images we have different scenarios:

  1. scan a container image store in Docker Engine
  2. scan a container image in tar format without any container runtime like docker
  3. scan a contaienr image store in a Container Registry like ECR, ACR or GCP Artefact Registry

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chris-rock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant