developerryan
HOBBYOP
a year ago
I'm writing some files to /tmp and I had a few questions:
- Do I need to manually create a /tmp volume, or does one exist implicitly
- Are volumes automatically mounted to docker containers, or do I need to specify in my Dockerfile?
- Will $TMPDIR resolve to /tmp if I added it as a volume, or do I need to set it?
- Do I need to manually clean up the volume?
I don't work with Dockerfiles too often, so just want to be sure I'm not missing something obvious! TY 🙂
3 Replies
a year ago
- one exists implicitly, at least every linux distro i know has such a folder.
- volumes are not mounted unless you mount one via the dashboard UI.
- unless you set
TMPDIRto/tmpno, but that's irrespective of the volume. - yes, we do not purge the data of volumes unless you leave your account in an unpaid state for 30 days.
with all that said, you only need to use a volume for /tmp data if you are writing large files, or many files.
a year ago
!s
Status changed to Solved brody • about 1 year ago