# Docker cache best practice

**URL:** <https://forums.docker.com/t/docker-cache-best-practice/136420>\
**Category:** General\
**Created:** [June 12, 2023, 9:38am UTC](https://forums.docker.com/t/docker-cache-best-practice/136420 "2023-06-12T09:38:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashboy](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@flashboy](https://forums.docker.com/u/flashboy)\
**Post date:** [June 12, 2023, 9:38am UTC](https://forums.docker.com/t/docker-cache-best-practice/136420/1 "2023-06-12T09:38:14Z")

</div>

I run build docker image from multistage dockerfile. and use --no-cache  
Docker pull images, but i don’t found it (docker images).Previously all pull docker images i can found there.  
How is it return?

I have problem with free disk size. I work 1 week and folder /var/lib/docker/overlay2 increases (100Gb)  
i need run (docker builder prune -af).  
For test i run docker build same dockerfile 3-5 times and /var/lib/docker/overlay2 increases 6-\>9 gb.  
What is the best practice?
