jumpserver always wait
problem
docker ps
5d34edfc8832 jumpserver/jms_all:v2.7.1 "./entrypoint.sh" 41 minutes ago Up 21 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:2222->2222/tcp jms_all
批量执行命令,显示等待中,没有回显,看日志是执行成功的,根据issues是redis版本的问题,升级到6.x就可以解决
resolve
- compiler redis
- new images
- renew start jumpserver
compiler redis
#centos7.x
yum install -y gcc gcc-c++ make autoconf automake
cd deps/
make hiredis jemalloc linenoise lua
cd ..
make -s install PREFIX=/opt/redis
new image
#Dockerfile
FROM jumpserver/jms_all:v2.7.1
COPY bin/* /usr/bin/
docker built -t jumpserver/jms_all:v2.7.1 .
renew start jumpserver
docker stop jms_all
docker rm -f jms_all
docker run -d --name jms_all --restart=always \
-v /opt/jms_all/mysql:/var/lib/mysql \
-v /opt/jms_all/jumpserver:/opt/jumpserver/data \
-v /opt/jms_all/koko:/opt/koko/data \
-v /opt/jms_all/guacamole:/config/guacamole/data \
-p 80:80 -p 2222:2222 \
-e SECRET_KEY=$SECRET_KEY -e BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN jumpserver/jms_all:v2.7.1
docker logs -f jms_all
note: 由于mysql的数据已持久化挂载在本地,所以可以重新安装的