Please check the official Repository for further Information.
docker pull ellerbrock/alpine-aliyuncli
export ALICLOUD_ACCESS_KEY="your-access-key-here"
export ALICLOUD_SECRET_KEY="your-secret-key-here"
export ALICLOUD_REGION="your-region-here"
docker run \
-e "ALICLOUD_ACCESS_KEY=${ALICLOUD_ACCESS_KEY}" \
-e "ALICLOUD_SECRET_KEY=${ALICLOUD_SECRET_KEY}" \
-e "ALICLOUD_REGION=${ALICLOUD_REGION}" \
ellerbrock/alpine-aliyuncli
You can pass the variables directly without first exporting them, but since i will use this later with Travis CI and encrypted environment variables this speraration makes it later more easy for me.