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)
示例#2
0
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)