Rancher怎么重置管理员密码

  1. 环境查看
    系统环境
# uname  -a
Linux CentOS7K8SMaster02062 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

软件环境

# docker ps|grep rancher
e8a158d8e8f2   rancher/rancher:v2.3.3   "entrypoint.sh"        20 months ago   Up 17 hours   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp   brave_solomon
  1. 重置密码
    使用容器ID重置管理员admin密码
# docker exec -it e8a158d8e8f2  reset-password
New password for default admin user (user-sr5zt):
Emh43YuZlB7H_NuV_-Oa
posted @ 2025-08-20 17:32  minseo  阅读(41)  评论(0)    收藏  举报