def layers(self, rev=True):
        """
        Get list of DockerImage for every layer in image

        :param rev: get layers rev
        :return: list of DockerImages
        """
        image_layers = [
            DockerImage(None, identifier=x, pull_policy=DockerImagePullPolicy.NEVER)
            for x in self.get_layer_ids()
        ]
        if not rev:
            image_layers.reverse()
        return image_layers
def layers ( self , rev = True ) : image_layers = [ DockerImage ( None , identifier = x , pull_policy = DockerImagePullPolicy . NEVER ) for x in self . get_layer_ids ( ) ] if not rev : image_layers . reverse ( ) return image_layers
Get list of DockerImage for every layer in image

        :param rev: get layers rev
        :return: list of DockerImages