I am rookie when it comes to docker container , can somebody help me here.
There is a project which generates a output files when running inside docker container , I need to add Volume inside docker-compose.yml file, So that the output files are accessible outside the container .
Please do provide me indetail knowledge of how can I do this?
Define volumes in the docker-compose.yml
file, mapping source on the server to target in the container:
volumes:
- "./relative/path/on/host:/absolute/path/in/container:rw"
Reference:
https://docs.docker.com/storage/volumes/#use-a-volume-with-docker-compose
There hopefully should be a readme.md
file in the project which lists the options on how to get the output (files).
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.