container-structure-test

Validate the structure and contents of container images

brewmacoslinux
Try with needOr install directly
Source

About

Validate the structure of your container images

Commands

container-structure-test

Examples

Run structure tests against a Docker image$ container-structure-test test --image myimage:latest --config test.yaml
Verify file existence and permissions in a container$ container-structure-test test --image ubuntu:22.04 --config filetest.yaml
Test metadata and environment variables in an image$ container-structure-test test --image myapp:v1.0 --config metadata.yaml