(self)
Destroys the container.
Destroys the container.
Destroys the container .
def destroy(self):
        """ Destroys the container. """
        container = self._get_container(create=False)
        if container is None:
            logger.info("Container doesn't exist, nothing to destroy.")
            return

        # Halts the container...
        self.halt()
        # ... and destroy it!
        logger.info('Destroying container "{name}"...'.format(name=self.name))
        container.delete(wait=True)
        logger.info('Container "{name}" destroyed!'.format(name=self.name))
def destroy ( self ) : container = self . _get_container ( create = False ) if container is None : logger . info ( "Container doesn't exist, nothing to destroy." ) return # Halts the container... self . halt ( ) # ... and destroy it! logger . info ( 'Destroying container "{name}"...' . format ( name = self . name ) ) container . delete ( wait = True ) logger . info ( 'Container "{name}" destroyed!' . format ( name = self . name ) )