title: Why are Docker container images so large?
body: <p>I made a simple image through Dockerfile from Fedora (initially 320 MB).</p>
  
  <p>Added Nano (this tiny editor of 1MB size), and the size of the image has risen to 530 MB. I've added Git on top of that (30-ish MB), and then my image size sky-rockets to 830 MB. </p>
  
  <p>Isn't that insane?</p>
  
  <p>I've tried to export and import container to remove history/intermediate images. This effort saved up to 25 MB, now my image size is 804 MB. I've also tried to run many commands on one <code>RUN</code>, but still I'm getting the same initial 830MB.</p>
  
  <p>I'm having my doubts if it is worth to use Docker at all. I mean, I barely installed anything and I'm hitting 1GB over. If I will have to add some serious stuff like a database and so on I might run out of disk space.</p>
  
  <p>Anyone suffers from ridiculous size of images? How do you deal with it?</p>
  
  <p>Unless my Dockerfile is horribly incorrect?</p>
  
  <pre><code>FROM fedora:latest
  MAINTAINER Me NotYou &lt;email@dot.com&gt;
  RUN yum -y install nano
  RUN yum -y install git
  </code></pre>
  
  <p>but it's hard to imagine what could go wrong in here.</p>