update ghcr image usage
This commit is contained in:
parent
d4252f8835
commit
bf117534cd
23
readme.md
23
readme.md
@ -16,6 +16,19 @@
|
||||
|
||||
## 如何使用 Docker 镜像
|
||||
|
||||
### 使用 GitHub 仓库
|
||||
|
||||
```bash
|
||||
docker run -e ZONE_ID=your_zone_id \
|
||||
-e API_TOKEN=your_api_token \
|
||||
-e FROM_DOMAIN=your_from_domain \
|
||||
-e TO_DOMAIN=your_to_domain \
|
||||
-e CYCLE_MINUTES=your_cycle_minutes \
|
||||
-d ghcr.io/flintylemming/ipv6-dns-transcriber
|
||||
```
|
||||
|
||||
#### 自己打包镜像
|
||||
|
||||
1. 构建 Docker 镜像
|
||||
|
||||
在 Dockerfile 所在的目录中执行:
|
||||
@ -28,11 +41,11 @@
|
||||
|
||||
```bash
|
||||
docker run -e ZONE_ID=your_zone_id \
|
||||
-e API_TOKEN=your_api_token \
|
||||
-e FROM_DOMAIN=your_from_domain \
|
||||
-e TO_DOMAIN=your_to_domain \
|
||||
-e CYCLE_MINUTES=your_cycle_minutes \
|
||||
-d your_image_name
|
||||
-e API_TOKEN=your_api_token \
|
||||
-e FROM_DOMAIN=your_from_domain \
|
||||
-e TO_DOMAIN=your_to_domain \
|
||||
-e CYCLE_MINUTES=your_cycle_minutes \
|
||||
-d your_image_name
|
||||
```
|
||||
|
||||
## 环境变量说明
|
||||
|
Loading…
Reference in New Issue
Block a user