I have a docker container with an application running inside of it. I am trying to export a text file from the docker container to the host. The problem is the application keeps on writing data into the text file at regular intervals.
Is there a way to directly store the file onto the host and the application inside the docker container keep storing the data to the text file?
Take a look at bind mounts or volumes . They are used to achieve exactly what you asked.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.