30 lines
768 B
Markdown
30 lines
768 B
Markdown
|
* ### 下载帮助镜像portainer/helper-reset-password
|
||
|
|
||
|
```shell
|
||
|
docker pull portainer/helper-reset-password
|
||
|
```
|
||
|
* ### 查看portainer container id
|
||
|
|
||
|
```shell
|
||
|
docker container ls
|
||
|
```
|
||
|
|
||
|
![1638772640815.png](http://39.107.103.48:8600//blog/admin/png/2021/12/6/1638772640815.png)
|
||
|
* ### 查看 portainer 的挂载信息
|
||
|
|
||
|
```shell
|
||
|
docker inspect [portainer 容器id]
|
||
|
```
|
||
|
|
||
|
![1638772824025.png](http://39.107.103.48:8600//blog/admin/png/2021/12/6/1638772824025.png)
|
||
|
* ### 停止运行的portainer
|
||
|
|
||
|
```shell
|
||
|
docker stop [portainer 容器id]
|
||
|
```
|
||
|
* ### 运行重置命令
|
||
|
|
||
|
```shell
|
||
|
docker run --rm -v [挂载信息] portainer/helper-reset-password
|
||
|
```
|
||
|
![1638773641145.png](http://39.107.103.48:8600//blog/admin/png/2021/12/6/1638773641145.png)
|