Files
nexus/wiki/concepts/Docker-Containerization.md
2026-04-24 00:03:01 +08:00

51 lines
2.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 Containerization"
type: concept
tags: [docker, cloud-migration, devops, aws]
last_updated: 2026-04-23
---
## Definition
Docker 容器化是一种操作系统级虚拟化技术,将应用程序及其所有依赖项打包为轻量级、可移植的容器,确保应用程序在任何环境中一致运行。
## Key Features
- **轻量级**:共享主机操作系统内核,无需完整虚拟机开销
- **可移植性**:容器在任何支持 Docker 的环境中一致运行
- **隔离性**:每个容器独立运行,拥有自己的文件系统、网络和进程空间
- **版本控制**:容器镜像支持版本化,便于回滚和审计
- **可组合性**:通过 Docker Compose 定义多容器应用
## Cloud Migration Context
在 [[Octane-Hub]] 的 AWS 迁移案例中Docker 容器化是关键基础设施:
| 组件 | 原环境 | 目标环境 |
|------|--------|----------|
| QuickSee | 物理服务器 | AWS Docker |
| Release Manager | 物理服务器 | AWS Docker |
| Patch Manager | 物理服务器 | AWS Docker |
| 安全程序板 | 物理服务器 | AWS Docker |
### Octane Hub 迁移经验
- Docker 是主要部署模式,运行在 AWS Landing Zone 账户中
- 后台作业(支持集成、数据复制、内部空闲搜索)同样容器化
- 迁移策略:"紧密镜像现有设置",保持应用架构不变
### 未来演进
- 当前Docker 容器运行在 EC2 实例上
- 目标:迁移到 AWS ECSElastic Container Service以获得更好的编排能力
## Key Concepts
- **镜像 (Image)**:应用程序及其依赖项的可读模板
- **容器 (Container)**:镜像的运行实例
- **Dockerfile**:定义镜像构建步骤的脚本
- **Docker Compose**:定义和运行多容器应用的工具
- **Volume**:容器持久化数据存储
## Related Concepts
- [[Packer]]:用于构建 Docker AMI 镜像
- [[Terraform]]:用于在 AWS 上部署容器基础设施
- [[AWS-Landing-Zone]]:企业级多账户 AWS 环境
## References
- [[ctp-topic-14-octane-hub-on-aws-real-life-experience-moving-production-services-i]]