Files
nexus/wiki/sources/docker-images-transfer-guide.md
2026-04-17 08:38:12 +08:00

42 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "如何传输 Docker images 并且在另一个 Docker 安装"
type: source
tags: [docker, nas, synology]
date: 2025-03-06
---
## Source File
- [[raw/Home Office/如何传输Docker images 并且在另一个Docker安装.md]]
## Summary
- 核心主题Docker 镜像在不同主机之间的传输方法
- 问题域:离线环境下的 Docker 镜像迁移
- 方法/机制:使用 `docker save` 导出为 tar 文件,通过文件传输后使用 `docker load` 导入
- 结论/价值:实现无需网络连接的 Docker 镜像迁移
## Key Claims
- 使用 `docker save` 命令可将 Docker 镜像打包成 tar 格式文件
- 导出的 tar 文件可通过任意文件传输方式FTP、SMB、NFS 等)迁移到目标主机
- 使用 `docker load` 命令可将 tar 文件还原为 Docker 镜像
## Key Quotes
> "docker save -o xiaoya.tar xiaoyaliu/alist" — 将镜像导出为 tar 文件
> "docker load < xiaoya.tar" — 从 tar 文件导入镜像
## Key Concepts
- [[Docker-Image]]Docker 容器运行所需的模板,包含应用及其依赖
- [[Docker-Save]]:将镜像导出为 tar 归档文件的 Docker 命令
- [[Docker-Load]]:从 tar 归档文件导入镜像的 Docker 命令
## Key Entities
- [[Docker]]:开源容器化平台,用于打包和运行应用程序
- [[Synology-NAS-DS718]]:群晖 2 盘位 NAS目标安装环境
## Connections
- [[Docker]] ← exports_image_to ← [[Docker-Image]]
- [[Docker-Image]] ← transferred_via ← [[Docker-Save]]
- [[Synology-NAS-DS718]] ← imports_image_from ← [[Docker-Load]]
## Contradictions
- (暂无)