src/hivemined/container.py
def exists(self, running=False):
        """Return True if the container referenced by this object exists, or False otherwise.

        If running==True, check if the container is running instead.
        """
        if not self.container.get('Id'):
            return False
        containers = self.list(show_all=(not running))
        return next((True for c in containers if c.get('Id') == self.container.get('Id')), False)
Return True if the container referenced by this object exists, or False otherwise.

        If running==True, check if the container is running instead.
        
Return True if the container referenced by this object exists, or False otherwise.
If running==True, check if the container is running instead.
Return True if the container referenced by this object exists or False otherwise . If running == True check if the container is running instead .
def exists(self, running=False):
        if not self.container.get('Id'):
            return False
        containers = self.list(show_all=(not running))
        return next((True for c in containers if c.get('Id') == self.container.get('Id')), False)
def exists ( self , running = False ) : if not self . container . get ( 'Id' ) : return False containers = self . list ( show_all = ( not running ) ) return next ( ( True for c in containers if c . get ( 'Id' ) == self . container . get ( 'Id' ) ) , False )
Return True if the container referenced by this object exists, or False otherwise.
Return True if the container referenced by this object exists or False otherwise .
"""Return True if the container referenced by this object exists, or False otherwise.

        If running==True, check if the container is running instead.
        """
self
running