labpack/platforms/docker.py
def rmi(self, image_id):

        '''
            a method to remove an image

        :param image_name: string with id of image
        :return: list of strings with image layers removed
        '''

        title = '%s.rmi' % self.__class__.__name__

    # validate inputs
        input_fields = {
            'image_id': image_id
        }
        for key, value in input_fields.items():
            object_title = '%s(%s=%s)' % (title, key, str(value))
            self.fields.validate(value, '.%s' % key, object_title)
    
    # send remove command 
        sys_cmd = 'docker rmi %s' % image_id
        output_lines = self.command(sys_cmd).split('\n')

        return output_lines

            a method to remove an image

        :param image_name: string with id of image
        :return: list of strings with image layers removed
        
a method to remove an image
a method to remove an image
def rmi(self, image_id):
        title = '%s.rmi' % self.__class__.__name__
        input_fields = {
            'image_id': image_id
        }
        for key, value in input_fields.items():
            object_title = '%s(%s=%s)' % (title, key, str(value))
            self.fields.validate(value, '.%s' % key, object_title)
        sys_cmd = 'docker rmi %s' % image_id
        output_lines = self.command(sys_cmd).split('\n')
        return output_lines
def rmi ( self , image_id ) : title = '%s.rmi' % self . __class__ . __name__ input_fields = { 'image_id' : image_id } for key , value in input_fields . items ( ) : object_title = '%s(%s=%s)' % ( title , key , str ( value ) ) self . fields . validate ( value , '.%s' % key , object_title ) sys_cmd = 'docker rmi %s' % image_id output_lines = self . command ( sys_cmd ) . split ( '\n' ) return output_lines
a method to remove an image
a method to remove an image
'''
            a method to remove an image

        :param image_name: string with id of image
        :return: list of strings with image layers removed
        ''' # validate inputs
 # send remove command 

list of strings with image layers removed
list of strings with image layers removed
self
image_id
image_name
string with id of image
string with id of image