How Docker DX Catches Dockerfile Errors Before You Build

https://hackernoon.imgix.net/images/hoKwMjaHyAUbRT5fRJGN96DZCJp2-h833a5q.png

If you have ever written Dockerfiles to containerize your applications, which include steps like FROM COPY

and a few other commands. After saving the file, you run docker build . and you may get an error. It will take a few minutes to pull base image and you may get an error response, missing package, or an incorrect path. This can be time consuming to catch error on runtime by following steps in loop from writing, build, fail, fix and repeat. This can reduce developer productivity and not worth it.

Docker DX extension can help to reduce this debug time and catch the error when you are writing the Dockerfile instead of waiting and watching terminal or CI pipeline to build container image. I recently find it saving my time and in this article I will explain it, part of my development setup.

First, I will install Docker DX extension...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE