I sometimes get warnings or non fatal errors when building an image. For instance, if I compile some program inside a Docker image, but some optional library is missing, a warning is printed.
But if the image keeps building, the message is difficult to retrieve, because the terminal keeps scrolling down and at some point, it is too high up to be readable.
Is it possible to pause a Docker image or to retrieve these error messages some other way than outputting to a file (which might loose the coloring the terminal has) ?