0

I want to copy docker logs to another folder in the host machine. When we run docker logs the output wants to store in a directory inside the host machine. Is there any solution for this?.

AWS Coder
  • 245
  • 3
  • 9
  • Check this answer: https://stackoverflow.com/questions/22049212/copying-files-from-docker-container-to-host – Mihai Pasca Sep 24 '20 at 11:04
  • Can I change the path of the docker log file using the -v option? or how I make the change in the docker file to change the docker log path? – AWS Coder Sep 25 '20 at 03:16

0 Answers0