src/docker_generate.py
def running(self, image_name):
        """
        Given an image name, return if currently running
        """
        for container in self.client.containers.list():
            if container.image.tags[0] == image_name:
                return True
        return False

        Given an image name, return if currently running
        
Given an image name, return if currently running
Given an image name return if currently running
def running(self, image_name):
        for container in self.client.containers.list():
            if container.image.tags[0] == image_name:
                return True
        return False
def running ( self , image_name ) : for container in self . client . containers . list ( ) : if container . image . tags [ 0 ] == image_name : return True return False
Given an image name, return if currently running
Given an image name return if currently running
"""
        Given an image name, return if currently running
        """
self
image_name