惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
P
Palo Alto Networks Blog
T
Threatpost
T
Tor Project blog
T
Tenable Blog
AWS News Blog
AWS News Blog
Project Zero
Project Zero
L
LangChain Blog
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Latest
Security Latest
云风的 BLOG
云风的 BLOG
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
K
Kaspersky official blog
Jina AI
Jina AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
IT之家
IT之家
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog

Rat's Blog - Docker

使用Searx搭建一个私人的搜索引擎平台,可展现Google/Bing等70多种搜索网站的搜索结果 - Rat's Blog 使用Docker快速安装Poste.io邮件服务器 - Rat's Blog 使用Docker安装Seafile云盘专业版,并配置域名及SSL证书 - Rat's Blog 使用Docker快速安装rTorrent和ruTorrent - Rat's Blog Linux VPS使用Docker快速部署一个CentOS系统容器 - Rat's Blog VPS使用GDList挂载Google Drive和OneDrive网盘,支持多个同时挂载 - Rat's Blog 使用Docker快速安装H5ai网盘、内置HTML5视频播放器DPlayer - Rat's Blog 使用Docker快速安装Aria2+AriaNg+h5ai,可离线BT下载和在线播放 - Rat's Blog 使用Docker快速安装FileRun多功能网盘 - Rat's Blog
Linux VPS使用Docker快速安装Cloudreve多功能网盘 - Rat's Blog
博主: Rat's · 2018-03-26 · via Rat's Blog - Docker

说明:Cloudreve是一款支持对接多家云存储的多功能网盘系统,之前介绍过,具体查看:Cloudreve搭建教程,这里再说下使用Docker来快速安装Cloudreve

安装

本镜像使用环境为Apache 2.4MariaDB 10PHP 7.1。且不支持OpenVZ架构。

1、安装Docker

#CentOS 6
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on

#CentOS 7、Debian、Ubuntu
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker

2、拉取镜像

docker pull ilemonrain/cloudreve

3、配置镜像

#命令
docker run [-d/-t] -p 80:80 -v /cloudreve:/cloudreve -e CLOUDREVE_URL="[Cloudreve URL]" --name docker-cloudreve ilemonrain/cloudreve
#示例
docker run -t -p 80:80 -v /cloudreve:/cloudreve -e CLOUDREVE_URL="http://xx.com/" --name docker-cloudreve ilemonrain/cloudreve

参数说明:

#-d/-t:决定是以后台运行模式启动或是前台监控模式启动。
使用-d参数启动,镜像将不会输出任何日志到你的Console,直接以Daemon模式启动。Deamon模式启动下,可以使用docker logs docker-cloudreve命令显示启动日志。
使用-t参数启动,将会直接Attach你的镜像到你的Console,这个模式启动下,你可以直观的看到镜像的启动过程,适合于初次部署镜像,以及镜像Debug部署使用。你可以使用Ctrl+C将Docker镜像转入后台运行,使用docker logs docker-cloudreve 命令显示启动日志。

#-v /cloudreve:/cloudreve:将Docker容器中的/cloudreve目录,映射到宿主机的/cloudreve目录,冒号前面的是映射路径,冒号后的为容器中路径 (强烈建议进行映射,以确保容器中数据的安全,避免在容器意外崩溃时导致数据丢失),容器中可以映射的路径:
/cloudreve:Cloudreve程序目录以及网盘文件目录
/var/lib/mysql:MariaDB(MySQL)数据库文件目录

#-p 80:80:暴露你的Docker容器内部的80端口,到你容器外部的80端口。目前由于开发状态原因,不建议修改此端口。

#-e CLOUDREVE_URL="[Cloudreve URL]":Cloudreve绑定的地址,此参数务必严格填写,不能丢掉http/https前缀和结尾的斜杠!如http://xx.com/。

最后打开地址即可!

文章参考:Cloudreve on Docker-网络云盘,一键部署


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/556/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。