参考 Docker部署常见应用之企业级堡垒机JumpServer_jumpserver docker-CSDN博客
创建文件夹
mkdir -p /opt/jumpserver/core/data mkdir -p /opt/jumpserver/koko/data mkdir -p /opt/jumpserver/lion/data mkdir -p /opt/jumpserver/kael/data mkdir -p /opt/jumpserver/chen/data mkdir -p /opt/jumpserver/web/log
执行docker 命令
sudo docker run --name jms_all -d \ -p 80:80 \ -p 2222:2222 \ -p 30000-30100:30000-30100 \ -e SECRET_KEY=$SECRET_KEY \ -e BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN \ -e LOG_LEVEL=ERROR \ -e DB_HOST=192.168.10.111 \ -e DB_PORT=3306 \ -e DB_USER=root \ -e DB_PASSWORD=root\ -e DB_NAME=jumpserver \ -e REDIS_HOST=192.168.10.11 \ -e REDIS_PORT=6379 \ -e REDIS_PASSWORD= \ --privileged=true \ -v /data/docker/jumpserver/core/data:/opt/jumpserver/data \ -v /data/docker/jumpserver/koko/data:/opt/jumpserver/koko/data \ -v /data/docker/jumpserver/lion/data:/opt/jumpserver/lion/data \ -v /data/docker/jumpserver/kael/data:/opt/jumpserver/kael/data \ -v /data/docker/jumpserver/chen/data:/opt/jumpserver/chen/data \ -v /data/docker/jumpserver/web/log:/opt/jumpserver/web/log \ --network jumpserver \ jumpserver/jms_all:v3.10.10
标签:opt,安装,DB,mkdir,jumpserver,堡垒,docker,data From: https://www.cnblogs.com/easyidea/p/18496573