title: Docker: "You don't have enough free space in /var/cache/apt/archives/"
body: <p>I have a dockerfile which when I want to build results in the error</p>
  <pre><code>E: You don't have enough free space in /var/cache/apt/archives/
  </code></pre>
  <p>Note that the image sets up a somewhat complex project with several dependencies that require quite a lot of space. For example, the list includes Qt. This is only a thing during the construction of the image, and in the end, I expect it to have a size of maybe 300 MB.</p>
  <p>Now I found this: <a href="https://unix.stackexchange.com/questions/578536/how-to-fix-e-you-dont-have-enough-free-space-in-var-cache-apt-archives">https://unix.stackexchange.com/questions/578536/how-to-fix-e-you-dont-have-enough-free-space-in-var-cache-apt-archives</a></p>
  <p>Given that, what I tried so far is:</p>
  <ul>
  <li>Freeing the space used by docker images so far by calling <code>docker system prune</code></li>
  <li>Removing unneeded installation files by calling <code>sudo apt autoremove</code> and <code>sudo apt autoclean</code></li>
  <li>There was also the suggestion to remove data in <code>var/log</code>, which has currently a size of 3 GB. However, I am not the system administrator and thus wary to do such a thing.</li>
  </ul>
  <p>Is there any other way to increase that space?<br />
  And, preferably, is there a more sustainable solution, allowing me to build several images without having to search for spots where I can clean up the system?</p>