1、查看docker的进程
[root@jumpserver ~]# docker ps
2、进入 jms_core 这个容器
[root@jumpserver ~]# docker exec -it jms_core /bin/bash
切换到apps目录里面
root@98567733dfb2:/opt/jumpserver# cd apps/
修改admin密码
root@98567733dfb2:/opt/jumpserver/apps# python manage.py changepassword admin
注(admin用户的密码和不能有admin的字样)输入两次密码
Changing password for user ‘Administrator(admin)‘
Password: #第一次密码
Password (again): #在输入一次密码
Password changed successfully for user ‘Administrator(admin)‘
出现以上字段修改成功
Ctrl +p Ctrl+q 退出容器即可(刷新界面重新登入即可)