Use Docker to quickly install Cloudreve multi-function network disk under Linux

Use Docker to quickly install Cloudreve multi-function network disk under Linux

Description: Cloudreve is a multi-functional network disk system that supports docking with multiple cloud storages. Demo: https://pan.zhujiwiki.com/Home.

This image uses Apache 2.4, MariaDB 10, and PHP 7.1. And does not support OpenVZ architecture.

1. Install Docker

 curl -sSL https://get.docker.com/ | sh service docker start

2. Pull the image

 docker pull ilemonrain/cloudreve

3. Configure the image

 docker run [-d/-t] -p 80:80 -v /cloudreve:/cloudreve -e CLOUDREVE_URL="[Cloudreve URL]" --name docker-cloudreve ilemonrain/cloudreve

Parameter Description :

 #-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/。

Finally, open the address!

via: https://www.moerats.com/archives/556/

<<:  Debian/Ubuntu One-click installation of h5ai_dplayer version

>>:  PowerVPS: $16/month/Atom D425/2GB RAM/500GB hard drive/unlimited traffic/France

Recommend

HungryVM: $7.5/year/256MB memory/5GB space/250GB traffic/KVM/Canada

HungryVM, a new hosting provider, has data center...

HiFormance: $3/month/1G memory/20GB SSD space/2TB traffic/KVM/Utah

HiFormance, an American hosting provider located ...

Netcup: €1.49/month/10GB SSD space/unlimited traffic/Germany

Netcup, a German hosting company, has been introd...

JixServer: $24/year/400GB hard drive/40TB traffic/US

JixServer, a new hosting provider, now offers spe...

ServerDeals: $25/month/C2758/32GB memory/random hard disk/10TB traffic/New York

ServerDeals, like instantdedis, is owned by Nexeo...

Payza registration and operation tutorial

About Payza: Payza was founded in 2004 and was or...

ss-panel one-click installation script

For manual installation, please refer to: SS-Pane...

CrownCloud: $5/month/2GB memory/20GB SSD space/1TB traffic/KVM/Germany

CrownCloud, a US hosting provider, has been opera...