title: Access logs from docker container
body: <p>I have a python server that I run in a docker container. I log my messages with logging from python and I don't know how to find/view my log file from the container.</p>
  
  <pre><code># Pull base image
  FROM python:3
  
  # Copy code to the container
  ADD src /usr/app
  WORKDIR /usr/app
  
  # run configuration
  COPY requirements.txt ./
  RUN pip install --no-cache-dir -r requirements.txt
  
  # Start script
  CMD [ "python", "./main.py"]
  </code></pre>
  
  <p>I start the server like this:</p>
  
  <pre><code>sudo docker run -it -p 5000:5000 --rm my_app
  </code></pre>
  
  <p>How can I access server logs?</p>
  
  <p>Thanks</p>