how to increase docker build's volume size
<p>One of my steps in <code>Dockerfile</code> requires more than 10G space on disk. It really does. However, all the intermediate containers in <code>docker build</code> are created with 10G volumes.</p>

<p>What I did:</p>

<ul>
<li>started <code>dockerd</code> with <code>--storage-opt dm.basesize=25G</code> (<code>docker info</code> says: <code>Base Device Size: 26.84 GB</code>)</li>
<li>disabled cache while building</li>
<li>re-pulled the base images</li>
<li>stopped docker, removed everything from the docker directory, and started it again</li>
</ul>

<p>It's no good: <code>df -h</code> in an intermediate container still shows a <code>10G</code> disk, and <code>docker inspect</code> of it shows <code>"DeviceSize": "10737418240"</code>.</p>

<p>What have I missed? How do I increase the base volume size?</p>