docker history --no-trunc=true image1 > image1-dockerfile docker history --no-trunc=true image2 > image2-dockerfile