Skip to content

Commit 044770c

Browse files
committed
update docker/portainer.md
1 parent cd03082 commit 044770c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docker/portainer.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
Portainer 是一个开源、轻量级Docker管理用户界面,基于Docker API,提供状态显示面板、应用模板快速部署、容器镜像网络数据卷的基本操作(包括上传下载镜像,创建容器等操作)、事件日志显示、容器控制台操作、Swarm集群和服务等集中管理和操作、登录用户管理和控制等功能。功能十分全面,基本能满足中小型单位对容器管理的全部需求。
22

3+
## v2 安装
4+
5+
```bash
6+
docker volume create portainer_data
7+
```
8+
9+
Docker Standalone
10+
11+
```bash
12+
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
13+
```
14+
15+
Docker Swarm
16+
17+
```bash
18+
curl -L https://downloads.portainer.io/portainer-agent-stack.yml -o portainer-agent-stack.yml
19+
# 下载 https://downloads.portainer.io/portainer-agent-stack.yml
20+
docker stack deploy -c portainer-agent-stack.yml portainer
21+
```
22+
23+
## v1.22x
24+
325
新建 `portainer-agent-stack.yml` 文件, 将下面内容复制到配置文件中,你可以从官方仓库拷贝 [`portainer/portainer-compose`](https://github.com/portainer/portainer-compose) 配置。
426

527
```yml

0 commit comments

Comments
 (0)