- 版本:CentOS Linux release 7.7.1908 (Core)
通过yum安装docker
yum install -y docker
docker -v
Docker version 1.13.1, build 7f2769b/1.13.1
启动docker拉取onlyoffice
systemctl start docker
docker pull onlyoffice/documentserver
Using default tag: latest
Trying to pull repository docker.io/onlyoffice/documentserver ...
latest: Pulling from docker.io/onlyoffice/documentserver
f7277927d38a: Pull complete
8d3eac894db4: Pull complete
edf72af6d627: Pull complete
3e4f86211d23: Pull complete
6ce29fec018b: Pull complete
88e1e0a2a5a3: Pull complete
1e6734c06f11: Pull complete
8c72ce4617ba: Pull complete
Digest: sha256:94294e0e54efe7204adcb98cd63dccfeebc3c7c7455039f84dd006cc43ae79a1
Status: Downloaded newer image for docker.io/onlyoffice/documentserver:latest
启动onlyoffice
docker run -i -t -d -p 80:80 onlyoffice/documentserver
也可将onlyoffice映射到其他端口例8080
docker run -i -t -d -p 8080:80 onlyoffice/documentserver
打开http://ip出现下图则安装成功,若无法打开请关闭防火墙和Selinux
systemctl stop firewalld
sentenforce 0
PS.刚打开可能出现502 Bad Gateway过一会再刷新下即可