# Portainer详解(Web端管理平台)

[官方网站](https://portainer.io/)

[官方安装教程](https://portainer.io/install.html)

创建一下数据卷,启动即可

```
$ docker volume create portainer_data
$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
```

**开放Docker网络管理端口**

```
$ vi /etc/sysconfig/docker
```

在配置文件结尾添加开放Docker开发2375端口的参数

```
OPTIONS='-Htcp://0.0.0.0:2375 -H unix://var/run/docker'
```

资料

[官方文档地址](https://portainer.readthedocs.io/en/latest/deployment.html)

## window安装

参考：

<https://www.portainer.io/installation/>

```
$ docker volume create portainer_data
$ docker run -d -p 8000:8000 -p 9000:9000 --name portainer --restart always -v \\.\pipe\docker_engine:\\.\pipe\docker_engine -v portainer_data:C:\data portainer/portainer
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docker.shujuwajue.com/portainerxiang-89e328-web-duan-guan-li-ping-53f029.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
