Files
nexus/wiki/sources/ubuntu-server-docker-docker-compose-installation.md
2026-04-17 08:38:12 +08:00

40 lines
1.5 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: "如何在 Ubuntu Server 安装 docker & docker compose"
type: source
tags: [docker, ubuntu, devops]
date: 2025-04-16
---
## Source File
- [[raw/Home Office/如何在Ubuntu Server安装 docker & docker compose.md]]
## Summary
- 核心主题:在 Ubuntu Server 上安装 Docker Engine 和 Docker Compose V2
- 问题域Ubuntu Server 环境配置、容器运行时部署
- 方法/机制:通过 Docker 官方 APT 仓库安装,包含 GPG 密钥配置、仓库添加、Docker Engine 和 Compose 插件安装、非 root 用户配置
- 结论/价值:完成 5 步安装流程后,可在 Ubuntu Server 上运行容器化应用
## Key Claims
- Docker 官方仓库安装可确保获取最新版本
- 安装 docker-compose-plugin 将获得 Docker Compose V2使用 `docker compose` 命令)
- 将用户加入 docker 组可无需 sudo 运行 Docker 命令
## Key Quotes
> "docker-compose-plugin installs Docker Compose V2, which is used via the command `docker compose` instead of `docker-compose`"
## Key Concepts
- [[Docker]]:开源容器化平台
- [[Docker-Compose]]:多容器应用编排工具
- [[apt-repository]]APT 包管理器的软件源配置机制
- [[GPG-key]]GNU Privacy Guard 公钥,用于软件包签名验证
## Key Entities
- [[Docker-Engine]]Docker 容器运行时
- [[Ubuntu]]Linux 发行版
## Connections
- [[Docker-Engine]] ← installs ← [[Docker-Compose]]
- [[Ubuntu]] ← hosts ← [[Docker-Engine]]
## Contradictions
- (暂无)