Files
nexus/wiki/concepts/Docker-Save.md
2026-04-17 08:38:12 +08:00

881 B

title, type, tags, sources, last_updated
title type tags sources last_updated
Docker Save concept
docker
image
export
docker-images-transfer-guide
2026-04-17

Summary

Docker Save 是 Docker 命令行工具的导出命令,用于将一个或多个镜像打包成 tar 归档文件,便于离线传输和备份。

Definition

将 Docker 镜像导出为 tar 格式归档文件的命令。

Command Syntax

docker save -o <output_file.tar> <image_name>[:<tag>]

Examples

# 导出单个镜像
docker save -o xiaoya.tar xiaoyaliu/alist

# 导出多个镜像
docker save -o images.tar image1:image2

Use Cases

  • 离线环境镜像迁移
  • 镜像备份和归档
  • 跨网络隔离环境传输

Connections