Is it possible to extract the Dockerfile from a docker container

前端 未结 3 563
死守一世寂寞
死守一世寂寞 2020-12-23 20:32

I\'m just starting out with Docker, and it would be very helpful to be able to see the Dockerfiles used to create existing docker images.

Even if the image was buil

3条回答
  •  一向
    一向 (楼主)
    2020-12-23 21:07

    You have docker history that is very helpful. It can even be used to generate a dockerfile if none of the steps involved stdin.

    If a step as stdin, the only way to know what happened would be to do docker logs , but if you do not have the container, you can't.

提交回复
热议问题