ie网站建设揭阳智能模板建站
ie网站建设,揭阳智能模板建站,湛江网站seo,旅游景区网站建设文章目录 前言1. 安装Docker容器2. 拉取镜像3. 验证 前言
docker 离线安装onlyoffice#xff0c;如在线安装可直接跳过导出导入镜像步骤#xff0c;拉取后直接运行。
1. 安装Docker容器
下载文件
wget https://download.docker.com/linux/static/stable/x86_64/docker-19… 文章目录 前言1. 安装Docker容器2. 拉取镜像3. 验证 前言
docker 离线安装onlyoffice如在线安装可直接跳过导出导入镜像步骤拉取后直接运行。
1. 安装Docker容器
下载文件
wget https://download.docker.com/linux/static/stable/x86_64/docker-19.03.9.tgz
解压
把压缩文件存在指定目录下并进行解压
tar -xvf docker-19.03.6.tgz将解压出来的docker文件内容移动到 /usr/bin/ 目录下
cp docker/\* /usr/bin/4、将docker注册为service
vim /etc/systemd/system/docker.service[Unit]
DescriptionDocker Application Container Engine
Documentationhttps://docs.docker.com
Afternetwork-online.target firewalld.service
Wantsnetwork-online.target[Service]
Typenotify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock
ExecReload/bin/kill -s HUP $MAINPID
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILEinfinity
LimitNPROCinfinity
LimitCOREinfinity
# Uncomment TasksMax if your systemd version supports it.
# Only systemd 226 and above support this version.
#TasksMaxinfinity
TimeoutStartSec0
# set delegate yes so that systemd does not reset the cgroups of docker containers
Delegateyes
# kill only the docker process, not all processes in the cgroup
KillModeprocess
# restart the docker process if it exits prematurely
Restarton-failure
StartLimitBurst3
StartLimitInterval60s[Install]
WantedBymulti-user.target5、启动
systemctl daemon-reload #重载unit配置文件
systemctl start docker #启动Docker
systemctl enable docker.service #设置开机自启 2. 拉取镜像
搞个vmware安装docker后执行 docker pull onlyoffice/documentserver导出镜像 查看要导出的镜像 docker images导出到当前所在目录 docker save 【镜像id】 -o onlyoffice.tar 导入到目标服务器 docker load -i onlyoffice.tar启动 docker run -i -t -d -p 80:80 --restartalways 【镜像id】 此时拉取的是最新版本docker inspect 不显示版本号经查询该版本可能是7.4.1 下载 ONLYOFFICE Docs | ONLYOFFICE
3. 验证
浏览器访问服务器ip即可 例如http://172.17.10.136/
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/pingmian/89314.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!