NAME 名称

podman-load - Load image(s) from a tar archive into container storage
podman-load - 从 tar 存档中加载图像到容器存储

SYNOPSIS 概要

podman load [options] podman load [选项]

podman image load [options]
podman image load [选项]

DESCRIPTION 描述

podman load loads an image from either an oci-archive or a docker-archive stored on the local machine into container storage. podman load reads from stdin by default or a file if the input option is set. podman load is used for loading from the archive generated by podman save, that includes the image parent layers. To load the archive of container’s filesystem created by podman export, use podman import.
podman load 从本地计算机上存储的 oci-archive 或 docker-archive 中加载镜像到容器存储。podman load 默认从 stdin 读取,或者如果设置了 input 选项,则从文件读取。podman load 用于从 podman save 生成的存档中加载,其中包括镜像的父层。要加载由 podman export 创建的容器文件系统的存档,请使用 podman import。

The local client further supports loading an oci-dir or a docker-dir as created with podman save (1).
本地客户端还支持加载一个由 podman save (1) 创建的 oci-dir 或 docker-dir。

The quiet option suppresses the progress output when set. Note: : is a restricted character and cannot be part of the file name.
当设置时,quiet 选项会抑制进度输出。注意: : 是受限字符,不能作为文件名的一部分。

podman [GLOBAL OPTIONS] podman [全局选项]

podman load [GLOBAL OPTIONS]
podman load [全局选项]

podman load [OPTIONS] podman load [选项]

OPTIONS 选项

--help, -h --help,-h ¶

Print usage statement 打印使用说明

--input, -i=input --input, -i=输入 ¶

Load the specified input file instead of from stdin. The file can be on the local file system or on a server (e.g., https://server.com/archive.tar). Also supports loading in compressed files.
加载指定的输入文件,而不是从标准输入读取。该文件可以位于本地文件系统或服务器上(例如,https://server.com/archive.tar)。还支持加载压缩文件。

The remote client, including Mac and Windows (excluding WSL2) machines, requires the use of this option.
远程客户端,包括 Mac 和 Windows(不包括 WSL2)机器,需要使用此选项。

NOTE: Use the environment variable TMPDIR to change the temporary storage location of container images. Podman defaults to use /var/tmp.
注意:使用环境变量 TMPDIR 来更改容器镜像的临时存储位置。Podman 默认使用 /var/tmp

--quiet, -q

Suppress the progress output
抑制进度输出

EXAMPLES 示例

Create an image from a compressed tar file, without showing progress.
从压缩的 tar 文件创建图像,而不显示进度。

$ podman load --quiet -i fedora.tar.gz

Create an image from the archive.tar file pulled from a URL, without showing progress.
从从 URL 拉取的 archive.tar 文件创建图像,而不显示进度。

$ podman load -q -i https://server.com/archive.tar

Create an image from stdin using bash redirection from a tar file.
使用 bash 重定向从 tar 文件中的 stdin 创建图像。

$ podman load < fedora.tar
Getting image source signatures
Copying blob sha256:5bef08742407efd622d243692b79ba0055383bbce12900324f75e56f589aedb0
 0 B / 4.03 MB [---------------------------------------------------------------]
Copying config sha256:7328f6f8b41890597575cbaadc884e7386ae0acc53b747401ebce5cf0d624560
 0 B / 1.48 KB [---------------------------------------------------------------]
Writing manifest to image destination
Storing signatures
Loaded image:  registry.fedoraproject.org/fedora:latest

Create an image from stdin using a pipe.
使用管道从 stdin 创建图像。

$ cat fedora.tar | podman load
Getting image source signatures
Copying blob sha256:5bef08742407efd622d243692b79ba0055383bbce12900324f75e56f589aedb0
 0 B / 4.03 MB [---------------------------------------------------------------]
Copying config sha256:7328f6f8b41890597575cbaadc884e7386ae0acc53b747401ebce5cf0d624560
 0 B / 1.48 KB [---------------------------------------------------------------]
Writing manifest to image destination
Storing signatures
Loaded image:  registry.fedoraproject.org/fedora:latest

SEE ALSO 参见 ¶

podman(1), podman-save(1)
podman(1),podman-save(1)

HISTORY 历史 ¶

July 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com
2017 年 7 月,最初由 Urvashi Mohnani umohnani@redhat.com 编写