vault backup: 2024-02-06 15:44:17

This commit is contained in:
2024-02-06 15:44:17 +08:00
parent 44e7b9992a
commit eb44d3c928
2 changed files with 21 additions and 6 deletions

View File

@@ -22,6 +22,18 @@ docker run -d \
--cleanup
```
### 或使用 docke-compose.yml
```yml
version: "3"
services:
watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 86400 --cleanup
```
### 設置自動更新檢測頻率
Watchtower 默認是每 5min 檢測一次,如果需要更改週期,可以使用 `--interval``-i` 選項
如設定每小時檢測一次: