title: Is there a way to save Docker container logs automatically?
body: <p>The application that I run in a container sends its logs to stdout and this can't be reconfigured. I need these logs to be written to a file to keep them. Is there a way to automatically redirect logs from stdout of a container to a file as soon as the container starts?
  (I know about "docker logs" command, but it has to be controlled manually and it is no good if a container stops before logs are saved this way.)
  Thanks in advance.</p>