0

I have a container up and running. Is it a way to generate Dockerfile from the running container or from its image? Please advice.

Saro
  • 11
  • 5
  • Does this answer your question? [How to create a new docker image from a running container on Amazon?](https://stackoverflow.com/questions/44027873/how-to-create-a-new-docker-image-from-a-running-container-on-amazon) – Alex Watt Nov 08 '20 at 17:45
  • I don't think that's possible. Your best bet would be to commit the container (with whatever changes you made) to make an image that could serve as the base image for your desired image's Dockerfile. – Gaurav Agarwal Nov 08 '20 at 18:04

0 Answers0