During initialization of the daemon, docker creates a tmp folder inside its root directory. code reference
What is the exact purpose of this tmp directory, does that directory is only used to store temporary files related to docker, if yes does it only used in docker startup? Do containers also have access to that directory and use it to store their temporary files? Does it also cache some data for the next reboot of the host machine?
The prime objective to get this information is to estimate the size of the tmp directory and create a strategy for storing it.
I tried looking for the information in official docs, but I wasn't able to find any. There is a question here regarding /tmp folder strategy, but this will only help me once I know what exactly tmp is used for.