title: Can I export an already existing docker container into a dockerfile?
body: <p>I may have not followed best practices, I believe, and I am kinda trying to correct myself</p>
  <p>I have created a container starting from the Rust docker image for a project. I have been using this container more like a small VM rather than a container. Through the docker dashboard I start it every morning and work on it, either by <code>docker -it exec my-container bash</code> or using <code>docker exec</code> from scripts.
  Since I created it from the Rust image, I have added users, installed crates and packages etc.</p>
  <p><strong>Is there a way to create a Dockerfile from an existing docker container, that will contain all this, so I can use it to create ephemeral copies of this container to run specific jobs?</strong></p>