jumpserver官方github https://github.com/jumpserver/docker file
安装文件库
yuminstalldocker-ysystemctlenabledockersystemctlstartdocker 3358 www.Sina.com /
用https://github.com/jumpserver/docker file.git代替https://github.com/106140873/docker file.git
安装git并下载文档文件。 文档文件用于创建包含用户指定的软件依赖关系等的自定义image。 当前目录包含文档文件,并使用命令build创建新的image。
yuminstallgit-y # git clone https://github.com/jumpserver/docker file.git # cddockerfile/allinone # docker build-tjumpsssspser (2021.3.19 ) git clone https://github.com/106140873/docker file.gitcddockerfile/docker build-thu anger
文档图像
随机加密私钥,避免泄露给外界
#生成随机加密私钥,并使用if [ '$SECRET_KEY'='' ]; then secret _ key=` cat/dev/urandom|tr-DCA-za-z0-9|head-c50 `; echo ' secret _ key=$ secret _ key '~~/. bashrc; echo $SECRET_KEY; else echo $SECRET_KEY; fiif [ '$BOOTSTRAP_TOKEN'='' ]; then bootstrap _ token=` cat/dev/urandom|tr-DCA-za-z0-9|head-C16 `; echo ' bootstrap _ token=$ bootstrap _ token '~/.bashrc; echo $BOOTSTRAP_TOKEN; else echo $BOOTSTRAP_TOKEN; 迁移和更新fi环境请检查SECRET_KEY是否与以前的设置匹配,但不要随机生成。 否则,数据库中的所有加密字段都将无法解密
要创建体积路径,请执行以下操作:
mkdir /opt/{mysql,jumpserver}运行jumpserver容器
docker run-- namejumpserverdocker-d- v/opt/MySQL 3360/var/lib/MySQL-v/opt/jumpserver 360/opt/jumpp
docker logs jumpserverdocker
将2019.6.13 guacamole从0.9.14升级到1.0.0
打开虚拟机的外部ip
从浏览器访问包含:http://容器的服务器访问包含IPssh3360ssh-p2222容器的服务器添加工具connection连接,如IPX shell。 默认ssh端口2222默认管理员帐户管理员密码管理员
ssh登录帐户的所有密码都是admin,端口为2222