Skip to main content

Assess Docker Image Security with cnspec

Use cnspec to scan Docker images and containers for security misconfigurations, CVEs, and end of life operating systems using the built in Mondoo security policies or your own custom policies.

Docker Image Scan

Docker images

Use cnspec to scan Docker images in public or private container registries using their registry name:

cnspec scan docker ubuntu:latest
cnspec scan docker elastic/elasticsearch:7.2.0
cnspec scan docker
cnspec scan docker

If the Docker agent is installed, you can scan images by their id:

cnspec scan docker docker-image-id

Docker containers

Scan a running or stopped Docker container by the container ID:

cnspec scan docker docker-container-id

You can only scan Docker containers if the Docker engine is installed.

Manage cnspec providers for containers

Providers are the components of cnspec that allow it to evaluate specific platforms. To learn how to manage cnspec providers most efficiently for containers, read Manage cnspec Providers.

Learn more