Container Scanning

Detect security vulnerabilities in your docker images.

CloudDefense Container scans are performed on a docker image using our fully packaged Docker image without any additional software installation. Please make sure you have the following prerequisites before running the scans.

Prerequisites

  • Install CLI

  • Install Docker if not already present.

    • Version: 18.x or greater

Example

Run the following command from your console

cdefense container --api-key=<YOUR_API_KEY> \
--image-name=<your image name> --project-name="my-docker-project"

For private container repositories with credentials

cdefense container --api-key=<YOUR_API_KEY> \
--image-name=<your image name> --project-name="my-docker-mage" \
--username=<docker login> --password=<docker password>

To securely enter the password use --W option without the actual password.

cdefense container --api-key=<YOUR_API_KEY> \
--image-name=<your image name> --project-name="my-docker-mage" \
--username=<docker login> --W