Skip to content

Repository files navigation

Testing Container Images

This sample project shows how to test container images with different tools:

Each sample performs the same tests on myimage (Dockerfile), if supported:

  • Testing that nginx is installed.
  • Ensuring that nginx workers do not run as root.
  • Testing that nginx is properly exposed and serves a welcome page by checking it on the host.
  • Checking that the container only exposes port 80 by default by inspecting the image configuration.

While the whole sample is obviously contrived, it gives a good idea of the capabilities of each tool and shows how to use them (see workflows).

About

Example that demonstrates how to test container images with various tools.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages