(self, structure, imagerepo, tag)
return self._load_image_step2(structure, imagerepo, tag)
Load a container image into a repository mimic docker load
Load a container image into a repository mimic docker load
Load a container image into a repository mimic docker load
def _load_image(self, structure, imagerepo, tag):
        """Load a container image into a repository mimic docker load"""
        if self._imagerepo and self._imagerepo != imagerepo:
            cd_imagerepo = self._imagerepo
        else:
            cd_imagerepo = imagerepo

        if self.localrepo.cd_imagerepo(cd_imagerepo, tag):
            Msg().err("Error: repository and tag already exist",
                      cd_imagerepo, tag)
            return []

        self.localrepo.setup_imagerepo(cd_imagerepo)
        tag_dir = self.localrepo.setup_tag(tag)
        if not tag_dir:
            Msg().err("Error: setting up repository", cd_imagerepo, tag)
            return []

        if not self.localrepo.set_version("v1"):
            Msg().err("Error: setting repository version")
            return []

        return self._load_image_step2(structure, imagerepo, tag)
def _load_image ( self , structure , imagerepo , tag ) : if self . _imagerepo and self . _imagerepo != imagerepo : cd_imagerepo = self . _imagerepo else : cd_imagerepo = imagerepo if self . localrepo . cd_imagerepo ( cd_imagerepo , tag ) : Msg ( ) . err ( "Error: repository and tag already exist" , cd_imagerepo , tag ) return [ ] self . localrepo . setup_imagerepo ( cd_imagerepo ) tag_dir = self . localrepo . setup_tag ( tag ) if not tag_dir : Msg ( ) . err ( "Error: setting up repository" , cd_imagerepo , tag ) return [ ] if not self . localrepo . set_version ( "v1" ) : Msg ( ) . err ( "Error: setting repository version" ) return [ ] return self . _load_image_step2 ( structure , imagerepo , tag )