title: Docker 1.7 consuming more space than Docker 1.5 for images
body: <p>Initially i had docker 1.5 installed  in <code>ubuntu Trusty</code> via Vagrant.</p>
  
  <p>Then i created new <code>Ubuntu Trusty</code> and now the docker version is <code>1.7</code>.</p>
  
  <p>I tried building Image of my Postgres Container with this Dockerfile</p>
  
  <pre><code>FROM ubuntu:trusty
  
  RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" &gt; /etc/apt/sources.list
  
  RUN apt-get -y update
  
  RUN apt-get -y install wget openssh-server
  
  RUN apt-get install -y supervisor
  
  RUN mkdir -p /var/run/sshd
  
  RUN wget --quiet --no-check-certificate -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
  
  RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" &gt;&gt; /etc/apt/sources.list
  
  RUN apt-get -y update
  
  RUN apt-get -y upgrade
  
  RUN locale-gen --no-purge en_US.UTF-8
  
  ENV LC_ALL en_US.UTF-8
  
  RUN update-locale LANG=en_US.UTF-8
  
  RUN apt-get -y install postgresql-9.3 postgresql-contrib-9.3 postgresql-9.3-postgis-2.1 postgis
  
  RUN echo "host    all             all             0.0.0.0/0               md5" &gt;&gt; /etc/postgresql/9.3/main/pg_hba.conf
  
  RUN service postgresql start &amp;&amp; /bin/su postgres -c "createuser -d -s -r -l docker" &amp;&amp; /bin/su postgres -c "psql postgres -c \"ALTER USER docker WITH PASSWORD 'docker'\"" &amp;&amp; service postgresql stop
  
  RUN echo "listen_addresses = '*'" &gt;&gt; /etc/postgresql/9.3/main/postgresql.conf
  
  RUN echo "port = 5432" &gt;&gt; /etc/postgresql/9.3/main/postgresql.conf
  
  EXPOSE 5432 22
  
  ADD start.sh /start.sh
  
  RUN chmod 0755 /start.sh
  
  cmd ["supervisord", "-n"]
  </code></pre>
  
  <p>Now when i check my ubuntu with docker 1.5 the</p>
  
  <pre><code>Filesystem           Size  Used Avail Use% Mounted on
  /dev/sda1             40G  2.3G   36G   6% /
  none                 4.0K     0  4.0K   0% /sys/fs/cgroup
  </code></pre>
  
  <p>When i check on docker 1.7 then</p>
  
  <pre><code>Filesystem           Size  Used Avail Use% Mounted on
  /dev/sda1             40G   14G   24G  38% /
  none                 4.0K     0  4.0K   0% /sys/fs/cgroup
  </code></pre>
  
  <p>I have specifically tested with only one image and nothing else on the server.</p>
  
  <p>I have even checked the disk usage and its coming from <code>/var/lib/docker/vfs/dir</code></p>
  
  <p>I want to know what have changed in 1.7 thats causing this</p>