Debugging Docker images
Docker builds images incrementally. Every line in a Dockerfile will generate a new image that builds on top of the last one. This can be really handy if something is not right in your build.
Source: Debugging Docker images, an article by Garrit Franke.