About downloading files in docker

recently, the download of a file is being written. Locally, the file to be downloaded is stored under the / var/tmp/dpts/test.pdf path on the local machine, and then the back end sends the path and file name to the front end, and the front end can download the file.

but after running the project with the docker container, the file cannot be downloaded successfully in docker. I found that in the / var/tmp/dpts/ directory of the docker container, there is this file / var/tmp/dpts/test.pdf , but the front end is unable to download the file. I checked the docker logs, error and said that the file could not be found. As follows

... [error] 9-sharp9: *59 open() "/var/tmp/dpts/test.pdf" failed (2: No such file or directory)

ask the Great God to tell me why? be deeply grateful!

Mar.16,2021
Is the / var/tmp/dpts/ path in the

container mapped to the server path?
my code is mapped from-v to docker, so it is easy to modify and submit. There is no need for build image, data to be mapped from the outside every time. Download is normal, and I have never encountered your situation.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35d96-2bfbb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35d96-2bfbb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?