apt/yum install jq -y
TAG=`curl -s GET https://api.github.com/repos/go-bai/http-proxy/tags\?per_page=1 | jq -r '.[].name'`
echo $TAG
docker run --rm --net=host --name http-proxy ghcr.io/go-bai/http-proxy:$TAG
docker run -d --net=host -e HTTP_PROXY_PASS="xxx" --restart always --name http-proxy ghcr.io/go-bai/http-proxy:$TAG
key | default |
---|---|
HTTP_PROXY_ADDR |
:38888 |
HTTP_PROXY_AUTH |
on |
HTTP_PROXY_PASS |
`` |