Docker Community Forums

Share and learn in the Docker community.

Locate Dockerfile from image


(Caldarolad) #1

Let me preface this with the fact that I am sure we are not using best practices in the way we are currently operating.

Our company has several people creating/modifying Dockerfiles for the same image. There may be 3-4 version of the Dockerfile floating around in various people’s home directories. It would be helpful to know two things.

  1. Which Dockerfile did an image come from? Maybe this could be added to the first line of the docker history output? “Image built from /full/path/to/Dockerfile” or “Image pulled from http://dockerhub/whatever/Dockerfile

  2. Has whatever was used to build the image changed since the image was built.

Is there anyway currently to determine this?

Does anybody have a suggestion on how to handle this problem?