labpack/platforms/docker.py
def inspect_container(self, container_alias):

        '''
            a method to retrieve the settings of a container
            
        :param container_alias: string with name or id of container
        :return: dictionary of settings of container

        { TOO MANY TO LIST }
        '''

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

    # validate inputs
        input_fields = {
            'container_alias': container_alias
        }
        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 inspect command
        import json
        sys_command = 'docker inspect %s' % container_alias
        output_dict = json.loads(self.command(sys_command))
        container_settings = output_dict[0]

        return container_settings

            a method to retrieve the settings of a container
            
        :param container_alias: string with name or id of container
        :return: dictionary of settings of container

        { TOO MANY TO LIST }
        
a method to retrieve the settings of a container
a method to retrieve the settings of a container
def inspect_container(self, container_alias):
        title = '%s.inspect_container' % self.__class__.__name__
        input_fields = {
            'container_alias': container_alias
        }
        for key, value in input_fields.items():
            object_title = '%s(%s=%s)' % (title, key, str(value))
            self.fields.validate(value, '.%s' % key, object_title)
        import json
        sys_command = 'docker inspect %s' % container_alias
        output_dict = json.loads(self.command(sys_command))
        container_settings = output_dict[0]
        return container_settings
def inspect_container ( self , container_alias ) : title = '%s.inspect_container' % self . __class__ . __name__ input_fields = { 'container_alias' : container_alias } for key , value in input_fields . items ( ) : object_title = '%s(%s=%s)' % ( title , key , str ( value ) ) self . fields . validate ( value , '.%s' % key , object_title ) import json sys_command = 'docker inspect %s' % container_alias output_dict = json . loads ( self . command ( sys_command ) ) container_settings = output_dict [ 0 ] return container_settings
a method to retrieve the settings of a container
a method to retrieve the settings of a container
'''
            a method to retrieve the settings of a container
            
        :param container_alias: string with name or id of container
        :return: dictionary of settings of container

        { TOO MANY TO LIST }
        ''' # validate inputs
 # send inspect command

None
self
container_alias
string with name or id of container
string with name or id of container