Auto-sync: 2026-04-17 08:37

This commit is contained in:
2026-04-17 08:38:12 +08:00
parent 6caa1c2f47
commit a0a48bd334
247 changed files with 6577 additions and 3061 deletions

View File

@@ -0,0 +1,39 @@
---
title: "Docker Save"
type: concept
tags: [docker, image, export]
sources: [docker-images-transfer-guide]
last_updated: 2026-04-17
---
## Summary
Docker Save 是 Docker 命令行工具的导出命令,用于将一个或多个镜像打包成 tar 归档文件,便于离线传输和备份。
## Definition
将 Docker 镜像导出为 tar 格式归档文件的命令。
## Command Syntax
```bash
docker save -o <output_file.tar> <image_name>[:<tag>]
```
## Examples
```bash
# 导出单个镜像
docker save -o xiaoya.tar xiaoyaliu/alist
# 导出多个镜像
docker save -o images.tar image1:image2
```
## Use Cases
- 离线环境镜像迁移
- 镜像备份和归档
- 跨网络隔离环境传输
## Related Concepts
- [[Docker-Image]]:被导出的镜像对象
- [[Docker-Load]]:对应的导入命令
## Connections
- [[Docker-Image]] ← 导出为 ← [[Docker-Save]]