docker pull jumpserver/jms_all
docker run –name jumpserver -e DOMAINS=69.11.35.6:8093 -p 2222:2222 -p 8093:80 -d jumpserver/jms_all:latest
–DOMAINS=69.11.35.6:8093 是要访问jumpserver的链接地址
— -p 8093:80 8093映射到容器的80端口
docker exec -it jumpserver
–进入容器
chown nginx.nginx -R /opt/jumpserver/data/*
–更改文件权限,否则会出现jumpserver页面无法正常显示,登录异常
cd /opt/jumpserver
root@5ddc3ab4eb79:/opt/jumpserver# more README.md
Access JumpServer in your browser at http://your-jumpserver-ip/
- Username:
admin
- Password: ChangeMe
–查看jumpserver初始密码