I have multiple containers which run windows console applications in centOS, which create report files and i can access the output files in host server via volumes specified in docker-compose.yml
report_output:
image: report:latest
ports: ["80:80"]
container_name: profit_report
restart: always
volumes:
- /home/profit_report/:/app/report_output
I am writing another C# console application delete_report which deletes reports older than 2 years. If I add C# code to access path /home/profit_report/ in the new console, will it be able to access the path from the inside container "delete_report"?
Or how can i access the path /app/report_output of report_output container from delete_report container to delete the files directly inside the container.
Is connecting to host server path from container efficient way of doing this or is it efficient connecting to required container and access path inside?
All of the containers are binded in same network.