Files
nexus/wiki/sources/用docker安装portainer.md

35 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安装Portainer"
type: source
tags: [docker, portainer]
date: 2026-04-26
---
## Source File
- [[raw/Home Office/用Docker安装Portainer.md]]
## Summary用中文描述
- 核心主题:通过 Docker Compose 方式安装 Portainer 容器管理面板
- 问题域家庭服务器或NAS环境下的Docker容器可视化管理工作
- 方法/机制:使用 docker-compose.yml 配置文件定义 Portainer 服务,通过 `docker-compose run -d` 启动容器
- 结论/价值提供图形化界面管理Docker容器、卷、网络等资源降低命令行操作复杂度
## Key Claims用中文描述
- Portainer 通过挂载 Docker Socket`/var/run/docker.sock`实现对本地Docker守护进程的管理
- 使用 LTS 版本镜像(`portainer/portainer-ce:lts`)确保稳定性和长期支持
- 容器配置为 `restart: always`,确保服务在系统重启后自动恢复
- 默认暴露 9443HTTPS管理界面和 8000Edge Agent通信端口
## Key Quotes
> "ports: - 9443:9443 - 8000:8000" — Portainer Web界面通过9443端口访问8000端口用于Edge Agent通信不使用Edge Agent时可移除
## Key Concepts
- [[Docker Compose]]定义和运行多容器Docker应用的工具通过YAML配置文件管理服务
- [[Portainer]]开源的Docker和Kubernetes图形化管理界面支持容器、镜像、卷、网络等资源管理
## Key Entities
- [[Portainer]]:开源容器管理平台,本文档的核心安装目标
## Connections
- [[如何删除旧的废弃的Docker Container + Volume]] ← related_to ← [[用Docker安装Portainer]]