sudo docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password 服务器终端执行一下这条命令就可以拿到root的密码了