docker pull onlyoffice/documentserver:7.3
docker run -i -t -d -p 80:80 --restart=always --name office
-v /home/onlyoffice/log:/var/log/onlyoffice
-v /home/onlyoffice/data:/var/www/onlyoffice/Data
-v /home/onlyoffice/plugin:/var/www/onlyoffice/documentserver/sdkjs-plugins
-v /home/onlyoffice/lib:/var/lib/onlyoffice
-v /home/onlyoffice/db:/var/lib/postgresql onlyoffice/documentserver:7.3
//将容器的文件考本到宿主机
docker cp 7f0://etc/onlyoffice/documentserver/local.json local.json
// 将本地文件拷贝到容器
docker cp local.json 7f0://etc/onlyoffice/documentserver/local.json
使用docker 安装
docker run -i -t -d -p 80:80 -e TZ=Asia/Shanghai --restart=always onlyoffice/documentserver-ee
docker run -i -t -d -p 80:80 -e TZ=Asia/Shanghai --restart=always onlyoffice/documentserver-de
docker 修改配置后重启服务
supervisorctl restart all
错误日志文件
/var/log/onlyoffice/documentserver/docservice/out.log
配置文件目录
/etc/onlyoffice/documentserver
使用卷启动
docker run -i -t -d -p 80:80 --restart=always
-v /home/onlyoffice/log:/var/log/onlyoffice
-v /home/onlyoffice/conf:/etc/onlyoffice/documentserver
-e JWT_SECRET=my_jwt_secret onlyoffice/documentserver
docker 访问外部网络出问题解决办法
systemctl stop docker
pkill docker
iptables -t nat -F
ifconfig docker down
brctl debr docker0
systemctl start docker