How can I fix 'No space left on device' error in Docker?
<p>I'm running a Mac-native Docker (no virtualbox/docker-machine).</p>

<p>I have a huge image with a lot of infrastructure in it (Postgres, etc.).
I have run cleanup scripts to get rid of a lot of cruft--unused images and so forth.</p>

<p>When I run my image I get an error like:</p>

<pre><code>could not create directory "/var/lib/postgresql/data/pg_xlog": No space left on device
</code></pre>

<p>On my host Mac /var is sitting at 60% space available and generally my disk has lots of storage free.</p>

<p>Is this some Docker configuration I need to bump up to give it more resources?</p>

<p>Relevant lines from <code>mount</code> inside docker:</p>

<pre><code>none on / type aufs (rw,relatime,si=5b19fc7476f7db86,dio,dirperm1)
/dev/vda1 on /data type ext4 (rw,relatime,data=ordered)
/dev/vda1 on /etc/resolv.conf type ext4 (rw,relatime,data=ordered)
/dev/vda1 on /etc/hostname type ext4 (rw,relatime,data=ordered)
/dev/vda1 on /etc/hosts type ext4 (rw,relatime,data=ordered)
/dev/vda1 on /var/lib/postgresql/data type ext4 (rw,relatime,data=ordered)
</code></pre>

<p>Here’s <code>df</code>:</p>

<pre><code>[11:14]  
Filesystem     1K-blocks    Used Available Use% Mounted on
none           202054928 4333016 187269304   3% /
tmpfs            1022788       0   1022788   0% /dev
tmpfs            1022788       0   1022788   0% /sys/fs/cgroup
/dev/vda1      202054928 4333016 187269304   3% /data
shm                65536       4     65532   1% /dev/shm
tmpfs             204560     284    204276   1% /run/docker.sock
</code></pre>