How to test a Dockerfile

Debugging a Docker image can take a lot of time. Writing unit test can save it and can reduce the fear of rebuilding and updating a container. [Here]( I try to explain how this can be done using a framework developed by Google: Container Structure Test.

2 thoughts on “How to test a Dockerfile”

  1. You can also use the “xray” and “lint” commands in docker-slim. Linting is still WIP, but it already has a number of good checks.


Leave a Comment