官方地址
https://github.com/docker-library/owncloud/issues
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,
);
原文地址:http://www.cnblogs.com/ltgybyb/p/16887704.html
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,请务用于商业用途!
3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员!
8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载
声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性