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

34 lines
1.0 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 Image"
type: concept
tags: [docker, container, image]
sources: [docker-images-transfer-guide]
last_updated: 2026-04-17
---
## Summary
Docker ImageDocker 镜像)是容器化平台的核心概念,是一个只读模板,包含应用程序及其运行时所需的全部依赖(代码、运行时、库、环境变量、配置文件等)。
## Definition
用于创建 Docker 容器的只读模板,通过分层存储实现高效复用和传输。
## Key Attributes
- **格式**:分层文件系统
- **存储方式**:可导出为 tar 归档文件
- **复用机制**:分层存储,多个镜像可共享基础层
## Use Cases
- 应用程序打包和分发
- 跨环境部署(开发、测试、生产)
- 离线环境镜像迁移
## Related Concepts
- [[Docker]]:容器化平台
- [[Docker-Save]]:镜像导出命令
- [[Docker-Load]]:镜像导入命令
## Connections
- [[Docker]] ← 包含 ← [[Docker-Image]]
- [[Docker-Image]] ← 可导出为 ← [[Docker-Save]]
- [[Docker-Image]] ← 可导入为 ← [[Docker-Load]]