Answer the question
In order to leave comments, you need to log in
Is it possible to get a Dockerfile from a docker image?
Hello, I lost the source from the dockerfile, the point is that you need to carry out exactly the same manipulations as in the finished image, but use another image as the basis (from), maybe someone came across?
PS centurylink/dockerfile-from-image tried it.
Answer the question
In order to leave comments, you need to log in
No, you can't get the original Dockerfile from image. You will have to write your own Dockerfile, repeating all the necessary steps.
From image, you can partially get a set of commands that were executed during the formation of layers:
docker history postgres --no-trunc --format '{{.CreatedBy}}' | tail -r
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question