Files
nexus/wiki/entities/docker-engine.md

55 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 Engine"
tags: [docker, container]
date: 2026-04-22
---
# Docker Engine
## Definition
Docker Engine 是 Docker 的核心运行时组件,包含三个主要部分:
- **dockerd**Docker 守护进程,管理容器生命周期
- **docker CLI**:命令行客户端,与 dockerd 通信
- **containerd**:容器运行时底层引擎(独立项目)
## Package Components
| 包名 | 作用 |
|------|------|
| `docker-ce` | Docker Community Edition 引擎主包 |
| `docker-ce-cli` | Docker 命令行工具 |
| `containerd.io` | containerd 的 Docker 打包版本 |
| `docker-buildx-plugin` | 多平台镜像构建插件 |
| `docker-compose-plugin` | Docker Compose V2 插件 |
## Installation Sources
- **官方 apt 仓库**(推荐):从 `download.docker.com` 安装,确保获取最新版本
- **系统默认仓库**:版本可能较旧,不推荐
## Key Commands
```bash
# 验证安装
sudo docker run hello-world
# 查看版本
docker --version
docker compose version
# 管理服务
sudo systemctl start docker
sudo systemctl enable docker
```
## Related Sources
- [[如何在ubuntu-server安装-docker-docker-compose]]
## Related Concepts
- [[Docker Compose]] — 多容器编排工具
- [[Docker 用户组]] — 非 root 用户权限配置
- [[APT 仓库配置]] — Docker 官方仓库配置方式
- [[GPG 密钥验证]] — apt 包验证机制
- [[containerd]] — 容器运行时底层
## Related Entities
- [[Docker-CE]] — Docker Community Edition 主包
- [[hello-world]] — Docker 官方测试镜像