Don’t let trial-and-error be your go-to technique for dealing with broken and bad Docker image builds. Learn to work with Docker’s feature set correctly, and you’ll debug a failed build as easily as if you were working on your local system!
Running tests in a container didn’t add too much to our configuration with Grunt or Docker. But there are a few tricks that you’ll want to know, when debugging.
Learn how to run JSHint (and Grunt) in a Docker container. Catch simple syntax errors before they get committed and shipped.
Learn how to take advantage of Nodemon in a Docker container, and as a bonus, how to re-start a Docker container and attach to the log output.
See what it takes to install a basic Express.js app into a Docker image and container, creating both a production and development version of the image.