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!