'Start the Docker container.'

def start(self):

    self.tmpdir = tempfile.mkdtemp(dir=os.path.expanduser('~'))
    try:
        self.docker.pull(self.image)
        container = self.docker.create_container(image=self.image, command='/bin/bash', tty=True, volumes=['/mnt/script'])
        self.container_id = container[u'Id']
        self.docker.start(self.container_id, binds={self.tmpdir: {'bind': '/mnt/script', 'ro': True}})
    except:
        os.rmdir(self.tmpdir)
        raise
