Volume or a non-volume directory?

Hi,

My application, running inside docker container, will download the files (size can range between 10-200MB) from cloud and then process them and then delete them. I don’t need to preserve these files. App will download and process the files in sequence. What is the recommended approach- volume and non-volume dir to store temp files in docker?

If you don’t care about the files after your container finished you don’t need a volume.

But if you want to cache the files and reuse the every time you restart the container a volume is a great way to share these files between different container runs.

1 Like

Thank you for the answers. I’ll give it a try with non-volume directory. As mentioned above my application is not I/O intensive and files does not need to be preserved after download.