Linux command
docker-load 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Load image from tar file
docker load -i [image.tar]
Load from stdin
cat [image.tar] | docker load
Load a gzip-compressed archive
docker load -i [image.tar.gz]
Load with quiet output
docker load -q -i [image.tar]
Load from a remote URL via curl
curl -sSL [https://example.com/image.tar.gz] | docker load
说明
docker load loads an image from a tar archive or STDIN. Restores both images and tags saved by docker save. This command is the counterpart to docker save, enabling image transfer between systems without using a registry. Useful for air-gapped environments or offline distribution.
参数
- -i, --input _file_
- Read from a tar archive file instead of STDIN. The tarball may be compressed with gzip, bzip2, or xz.
- -q, --quiet
- Suppress the load output and progress bar.
- --platform _string_
- Load only the specified platform image from a multi-platform archive (e.g., linux/amd64).
FAQ
What is the docker-load command used for?
docker load loads an image from a tar archive or STDIN. Restores both images and tags saved by docker save. This command is the counterpart to docker save, enabling image transfer between systems without using a registry. Useful for air-gapped environments or offline distribution.
How do I run a basic docker-load example?
Run `docker load -i [image.tar]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i, --input _file_ do in docker-load?
Read from a tar archive file instead of STDIN. The tarball may be compressed with gzip, bzip2, or xz.