containers / skopeo

Work with remote images registries - retrieving information, images, signing content
Apache License 2.0
8.19k stars 776 forks source link

HTTP Proxy support #1433

Closed willzhang closed 2 years ago

willzhang commented 3 years ago

what i want know

as 178 discuss , i want know is skopeo suppport http proxy like this?

mkdir -p /etc/systemd/system/docker.service.d

cat > /etc/systemd/system/docker.service.d/http-proxy.conf  <<EOF
[Service]
Environment="HTTP_PROXY=socket5://127.0.0.1:7890"
Environment="HTTPS_PROXY=http://127.0.0.1:7890"
Environment="NO_PROXY=localhost,127.0.0.1,192.168.93.0"
EOF

systemctl daemon-reload && systemctl restart docker

docker pull k8s.gcr.io/pause:3.2

what i want

it's impossible for chinese pull k8s.gcr.io images, what i want

export skopeo_http_proxy=http://127.0.0.1:7890
skopeo copy docker://k8s.gcr.io/pause:3.2 docker-daemon:pause:3.2 

i have a clash proxy client behand

rhatdan commented 3 years ago

skopeo uses golang, and golang is supposed to handle those environment variables

HTTP_PROXY=socket5://127.0.0.1:7890 skopeo ...

Should work.

Nick-The-Uncharted commented 3 years ago

@rhatdan At least for skopeo 1.2.1 this is not working.

mtrmac commented 3 years ago

@Nick-The-Uncharted Please provide precise steps to reproduce.

github-actions[bot] commented 2 years ago

A friendly reminder that this issue had no activity for 30 days.

rhatdan commented 2 years ago

Since we have had no feedback in a month, I am going to close, Reopen if you can provide the feedback.