公司的arm服务器上运行onlyoffice报错
是x86_64架构的镜像在arm服务器下不兼容
需要下载兼容arm架构的docker镜像
在dockerhub上 onlyoffice地址
Docker Hubhttps://hub.docker.com/r/onlyoffice/documentserver
下载兼容arm架构的镜像版本
# docker --version
Docker version 20.10.21, build baeda1f
# docker pull onlyoffice/documentserver:latest --platform=arm64
# docker inspect onlyoffice/documentserver | grep Architecture
"Architecture": "arm64",
下载完镜像,查看镜像架构是arm64
导出镜像
# docker save onlyoffice/documentserver -o onlyoffice-documentserver.tar
# 压缩镜像
tar -czvf onlyoffice-documentserver.tar.gz onlyoffice-documentserver.tar
部署运行
- sudo docker run -i -t -d -p 80:80 \
- -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
- -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver