FROM centos:centos7 RUN cd /tmp && yum -y install wget && yum install -y java-1.8.0-openjdk.x86_64 && yum clean all # 添加kkfile项目 ADD kkfile.3.5.1.tar.gz /home/启动kkfile
docker run -d --name kkfile kkfile:3.5.1 docker cp kkfile:/home/kkFileView-3.5.1/config /home/docker/kkfile/config docker stop kkfile docker rm kkfile docker run -d --name kkfile -p 7103:7103 --privileged=true --restart=always -v /home/docker/kkfile/config:/home/kkFileView-3.5.1/config -v /home/docker/kkfile/log:/home/kkFileView-3.5.1/log kkfile:3.5.1 /home/kkFileView-3.5.1/bin/startup.sh
容器第一次启动时间过长,需要安装openOffice



