Portainer重置管理员admin密码

查看所有容器

docker ps -a

停止Portainer容器

docker stop "id-portainer-container"

接下来,使用以下命令运行helper(需要挂载Portainer数据卷):

docker pull portainer/helper-reset-password
docker run --rm -v portainer_data:/data portainer/helper-reset-password

如果成功,输出应该如下所示:

{"level":"info","filename":"portainer.db","time":"2024-04-14T08:53:52Z","message":"loading PortainerDB"}
2024/04/14 08:53:52 Password successfully updated for user: admin
2024/04/14 08:53:52 Use the following password to login: 38]C\TQ0kr[6abSt9A}h7Z5f_zPX#2@,

使用以下命令启动Portainer容器,然后尝试使用新密码登录:

docker start "id-portainer-container"

参考:

https://docs.portainer.io/advanced/reset-admin
0
0
文章导航
  • N: Repository 'http://mirrors.cloud.aliyuncs.com/debian bookworm InRelease' changed its 'Version' value from '12.5' to '12.6'
  • docker部署BiliBiliToolPro
  • 上一篇N: Repository 'http://mirrors.cloud.aliyuncs.com/debian bookworm InRelease' changed its 'Version' value from '12.5' to '12.6'
  • 下一篇docker部署BiliBiliToolPro