def makeusb(path, force, tag): """ Create an offline installer USB/Disk at specified path """ click.echo('Exporting offline install files to {}'.format(path)) download.cloud_yml(path, force) download.offline_bwdt(path, force) download.offline_apt(path, force) client = Docker() client.pull_all(tag=tag) client.export_image_all(tag=tag, force=force)
def export_image_all(pull, tag, force): """ Export all images to directory """ client = Docker() if pull: client.pull_all(tag=tag) client.export_image_all(tag=tag, force=force)