From 376197c654ab4598873f10164f42727663a12e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=AF=E7=99=BD=E8=89=B2=E5=86=B0=E6=B7=87=E6=B7=8B?= Date: Tue, 11 Aug 2026 14:08:53 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BF=AE=E5=A4=8D=20Docker=20=E4=BB=85?= =?UTF-8?q?=E6=8C=82=E8=BD=BD=20configs=20=E6=97=B6=E9=87=8D=E5=BB=BA?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E4=B8=A2=E5=A4=B1=E5=86=85=E6=A0=B8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=9A=E8=A1=A5=E5=85=85?= =?UTF-8?q?=20yamls/jsons=20=E5=8D=B7=E6=8C=82=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/README.md | 4 +++- docker/compose.yml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/README.md b/docker/README.md index c3daaa64..dcc1bb14 100644 --- a/docker/README.md +++ b/docker/README.md @@ -89,6 +89,8 @@ mkdir -p /root/ShellCrash docker run -d \ ……………… -v shellcrash_configs:/etc/ShellCrash/configs \ + -v shellcrash_yamls:/etc/ShellCrash/yamls \ + -v shellcrash_jsons:/etc/ShellCrash/jsons \ ……………… ``` @@ -134,7 +136,7 @@ docker rm -f shellcrash ### Docker删除卷 ```shell -docker volume rm shellcrash_configs +docker volume rm shellcrash_configs shellcrash_yamls shellcrash_jsons ``` ### Compose删除容器&卷 diff --git a/docker/compose.yml b/docker/compose.yml index d246815b..636dd9df 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -18,10 +18,14 @@ services: # - net.ipv6.conf.all.forwarding=1 volumes: - shellcrash_configs:/etc/ShellCrash/configs:rw + - shellcrash_yamls:/etc/ShellCrash/yamls:rw + - shellcrash_jsons:/etc/ShellCrash/jsons:rw restart: unless-stopped volumes: shellcrash_configs: + shellcrash_yamls: + shellcrash_jsons: networks: macvlan_lan: