From 112daaf47ca7fea54de20957a4435db3ff64b2e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 23 Oct 2024 09:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20unicloud-unison/README.md?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=B8=BA=20/unison-unicloud-client/data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stacks/unicloud-unison/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stacks/unicloud-unison/README.md b/stacks/unicloud-unison/README.md index 5e7e0cd..bc2dc14 100644 --- a/stacks/unicloud-unison/README.md +++ b/stacks/unicloud-unison/README.md @@ -43,8 +43,8 @@ curl https://unison-unicloud-server.oo1.dev/status -v ``` ```bash -mkdir -p /unison-unicloud/data -# chown -R 1000:1000 /unison-unicloud/data +mkdir -p /unison-unicloud-client/data +# chown -R 1000:1000 /unison-unicloud-client/data ``` ```bash @@ -67,7 +67,7 @@ docker run -d --name unison-unicloud-client \ -e API_PROTOCOL=https \ -e API_PORT=443 \ -e SYNC_INTERVAL=60 \ - --mount type=bind,source=/unison-unicloud/data,target=/data \ + --mount type=bind,source=/unison-unicloud-client/data,target=/data \ -e CLIENT_DEST=/share \ --mount type=bind,source=$SOURCE1,target="/share$SOURCE1" \ ghcr.io/yanhao98/unicloud:latest @@ -79,4 +79,8 @@ docker exec -it unison-unicloud-client tail -f /data/log/client.log docker exec -it unison-unicloud-client tail -f /data/log/supervisord.log docker exec -it unison-unicloud-client tail -f /data/log/unicloud-supervise-err.log docker exec -it unison-unicloud-client tail -f /data/log/unicloud-supervise-std.log +``` + +```bash +docker exec -e HOME=/data -it unison-unicloud-client unison unicloud ``` \ No newline at end of file