title: Modifying a docker image
body: <p>I have recently started working on docker. I have downloaded a docker image and I want to change it in a way so that I can copy a folder with its contents from my local into that image or may be edit any file in the image. </p>
  
  <p>I thought if I can extract the image somehow, do the changes and then create one image. Not sure if it will work like that. I tried looking for options but couldn't find a promising solution to it. </p>
  
  <p>The current Dockerfile for the image is somewhat like this:</p>
  
  <pre><code>FROM abc/def
  MAINTAINER Humpty Dumpty &lt;@hd&gt;
  
  
  RUN sudo apt-get install -y vim
  
  ADD . /home/humpty-dumpty
  WORKDIR /home/humpty-dumpty
  RUN cd lib &amp;&amp; make
  
  CMD ["bash"]
  </code></pre>
  
  <p><strong>Note:-</strong> I am looking for an easy and clean way to change the existing image only and not to create a new image with the changes.</p>