MCPcopy
hub / github.com/indigo-dc/udocker / _load_repositories

Method _load_repositories

udocker/docker.py:824–835  ·  view source on GitHub ↗

Load other image repositories into this local repo

(self, structure)

Source from the content-addressed store, hash-verified

822 return [imagetag]
823
824 def _load_repositories(self, structure):
825 """Load other image repositories into this local repo"""
826 if "repositories" not in structure:
827 return False
828 loaded_repositories = []
829 for imagerepo in structure["repositories"]:
830 for tag in structure["repositories"][imagerepo]:
831 if imagerepo and tag:
832 loaded_repo = self._load_image(structure, imagerepo, tag)
833 if loaded_repo:
834 loaded_repositories.extend(loaded_repo)
835 return loaded_repositories
836
837 def load(self, tmp_imagedir, imagerepo=None):
838 """Load a Docker file created with docker save, mimic Docker

Callers 2

loadMethod · 0.95

Calls 2

_load_imageMethod · 0.80
extendMethod · 0.80

Tested by 1