Docker images into Dockerfiles

--

There are some cases that we need to build Dockerfile using a docker image. Fortunately Docker images are not a blackbox, there are options to inspect the docker image and construct it’s Dockerfile.

We can use a tool called “Whaler” which is designed to reverse engineer docker images into the Dockerfile that created it. This tool is built into a docker image called “alpine/dfimage” so that we can use the tool without any installations locally.

This tool generates a Dockerfile from an Image and it also displays information such as open ports and…

--

--