Docker 安装阿里云 DDNS
docker run -d \
--name=aliyun-ddns-cli \
--restart=always \
-e "AKID=LTAI4FcvMB4YhxDSFSDFxxisawxEQ" \
-e "AKSCT=7v8IukgTFnmE5SFwE9SEEHTGXXXXXXXXXX" \
-e "DOMAIN=test.shanhy.com" \
-e "REDO=600" \
chenhw2/aliyun-ddns-cli
镜像官方地址:https://hub.docker.com/r/chenhw2/aliyun-ddns-cli
其中AKID是阿里云的AccessKey ID
,AKSCT是阿里云的Access Key Secret
,DOMAIN是域名,REDO是执行评率(秒)。
对应的 docker-compose.yml 为
version: '3.7'
services:
aliyun-ddns-cli:
image: chenhw2/aliyun-ddns-cli
container_name: aliyun-ddns-cli
restart: always
environment:
AKID: LTAI4FcvMB4YhxDSFSDFxxisawxEQ
AKSCT: 7v8IukgTFnmE5SFwE9SEEHTGXXXXXXXXXX
DOMAIN: test.shanhy.com
REDO: 60
(END)