Ensure the domain resolution is managed by the alicloud.
docker run -it --rm \
-e "ALIYUN_AK=<access_key>" \
-e "ALIYUN_SK=<secret_key>" \
-e "EMAIL=<contact email>" \
-v /var/local/certs:/etc/letsencrypt acbig/certbot-dns-aliyun:1.0.0 obtain_cert \
-d "caryyu.top" \
-d "*.caryyu.top"
Note: the path
/var/local/certs
is your host disk where the certificates are stored into.
docker run -it --rm \
-e "ALIYUN_AK=<access_key>" \
-e "ALIYUN_SK=<secret_key>" \
-e "EMAIL=<contact email>" \
-v /var/local/certs:/etc/letsencrypt acbig/certbot-dns-aliyun:1.0.0 renew_certs