To understand how a docker image was built, use the docker history command. You can build a docker file from an image, but it will not contain everything you would want to fully understand how the image was generated. Reasonably what you can extract is the MAINTAINER, ENV, EXPOSE, VOLUME, WORKDIR, ENTRYPOINT, CMD, and ONBUILD …
Continue reading “repository – How to generate a Dockerfile from an image? – Stack Overflow”
