Load other image repositories into this local repo
(self, structure)
| 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 |