Docker error :System Error : no space left on device
<p>I am getting this error whenever I am trying to build my image. Searched on internet and got some links but none of them solved my problem. </p>

<p>Error:
System error: write /cgroup/docker/5dba72d862bf8171d36aa022d1929455af6589af9fb7ba6220b01842c7a7dee6/cgroup.procs: no space left on device.</p>

<p>This is the output of 'df -h':</p>

<pre><code>    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda2        56G   24G   29G  46% /
    none            4.0K     0  4.0K   0% /sys/fs/cgroup
    udev            1.9G  4.0K  1.9G   1% /dev
    tmpfs           385M  1.3M  384M   1% /run
    none            5.0M     0  5.0M   0% /run/lock
    none            1.9G  324M  1.6G  17% /run/shm
    none            100M   20K  100M   1% /run/user
    /dev/sda8       761M  3.4M  758M   1% /boot/efi
    /dev/sda3        55G   49G  3.8G  93% /home
    /dev/sda4       275G   48G  213G  19% /opt/drive2
    /dev/sda5       184G   74G  102G  43% /opt/drive3
    /dev/sda6       215G  157G   48G  77% /opt/drive4
    /dev/sda7       129G   23G   99G  19% /opt/drive1
</code></pre>