官方地址
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,
);
欢迎大家一起交流呀
qq群:3638803451
vx:wxid_sgdelhiwombj12
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!