• 创建Cloudreve配置文件,以及数据库文件
mkdir -p /opt/cloudreve/data && touch /opt/cloudreve/data/conf.ini && touch /opt/cloudreve/data/cloudreve.db
  • 启动容器,配置离线下载,需要监听其他端口,采用Host模式,默认端口5212,可在conf.ini修改,更多配置详情见官方文档
docker run -d \
    --name cloudreve \
    --restart always \
    --mount type=bind,source=/opt/cloudreve/data/conf.ini,target=/cloudreve/conf.ini \
    --mount type=bind,source=/opt/cloudreve/data/cloudreve.db,target=/cloudreve/cloudreve.db \
    --network host \
    -v /opt/cloudreve/uploads:/cloudreve/uploads \
    -v /opt/cloudreve/data/avatar:/cloudreve/avatar \
    -v /opt/aria2/downloads:/downloads \
    cloudreve/cloudreve:latest