官方地址

https://github.com/docker-lib...


 docker run -d --restart=always   -p 50000:80  -v /amydata:/var/www/html  --name owncloud1 owncloud:10.0

# 云盘数据内容迁移
docker stop owncloud1 && docker rm owncloud1

nohup rsync -avz --delete /amydata/   /owncloud  &

docker run -d --restart=always   -p 50000:80  -v /owncloud:/var/www/html  --name owncloud1 owncloud:10.0


user: admin
pwd:  brysjhhrhL356126155165352237656123165615

命令行上传文件


curl -u admin:brysjhhrhL356126155165352237656123165615 -T 'CentOS-7.2-x64-20200710.qcow2' "http://192.168.63.100:50000/remote.php/dav/files/admin/vm_img/CentOS-7.2-x64-20200710.qcow2"


fn='win10GPU0325'
curl --progress-bar  -o "${fn}_progress.log" -u admin:brysjhhrhL356126155165352237656123165615 -T "${fn}" "http://192.168.63.100:50000/remote.php/dav/files/admin/vm_img/${fn}"

nohup curl --progress-bar  -o "${fn}_progress.log" -u admin:brysjhhrhL356126155165352237656123165615 -T "${fn}" "http://192.168.63.100:50000/remote.php/dav/files/admin/vm_img/${fn}" 2>&1 > upload.log &

更多 操作 可以 参考 webdav 中的 pdf 帮助说明

Accessing Files Using cURL
Since WebDAV is an extension of HTTP cURL can be used to script file operations.
# To create a folder with the current date as name:
$ curl -u user:pass -X MKCOL "https://example.com/owncloud/remote.php/dav/files/USERNAME/$(date '+%d-%b-%Y')"

# To upload a file error.log into that directory:
$ curl -u user:pass -T error.log "https://example.com/owncloud/remote.php/dav/files/USERNAME/$(date '+%d-%b-%Y')/error.log"

# To move a file:

$ curl -u user:pass -X MOVE --header 'Destination: https://example.com/owncloud/remote.php/dav/files/USERNAME/target.jpg' https://example.com/owncloud/remote.php/dav/files/USERNAME/source.jpg

修改 网盘 配置 监听 公网 ip


cd /usr/local/src/owncloud

cd /var/www/html

vim config/config.php

array (
  0 => '192.168.199.199',
),




cat config.php
<?php
$CONFIG = array (
  'instanceid' => 'ocdu4htlctd3',
  'passwordsalt' => 'i5uSyuBogucYArNC/on8d2w4sBrXM2',
  'secret' => 'lA+U5are/CQZkIHcv5gaAslRESAMBUvV4d6BiZRi87HLC/IM',
  'trusted_domains' =>
  array (
    0 => '192.168.63.100:50000',
    1 => '119.36.243.58:50000'
  ),
  'datadirectory' => '/var/www/html/data',
  'overwrite.cli.url' => 'http://192.168.63.100:50000',
  'dbtype' => 'sqlite3',
  'version' => '10.0.10.4',
  'logtimezone' => 'UTC',
  'installed' => true,
);

欢迎大家一起交流呀
qq群:3638803451
vx:wxid_sgdelhiwombj12


乐码客
1 声望1 粉丝

« 上一篇
cache使用简介
下一篇 »
openvpn使用