title: Python script to run docker containers
body: <p>I want to write a python script that run docker containers and then show logs for that particular container, I have use some functions that are working and starting or stoping containers for me. Can somebody help me to show logs for the containers ?? 
  I tried to use container.logs() function, but it is not working for me, i am also trying to study docker-py library !
  I don't know much about python, any help will be highly appreciated !</p>
  
  <pre><code>#!/usr/bin/python
  import docker
  c = docker.Client(base_url='unix://var/run/docker.sock',version='1.12',timeout=10)
  ctr = c.create_container('ubuntu:16.04') 
  c.start(ctr)
  </code></pre>