How to download Docker-compose via curl if the url is not available due to RKN?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Here a team is downloaded and installed docker-compose:
sudo curl -o /usr/local/bin/docker-compose-L ""

But the address quoted is not available without proxy(checked in browser). Proxy downloaded.
Can we install through the console already downloaded file?

UPD: Seeded the Internet with mobile and downloaded through it. There address was available.
by | 50 views

2 Answers

0 like 0 dislike
man curl x, --proxy <[protocol://][user:password@]proxyhost[:port]> Use the specified HTTP proxy. If the port number is not specified, it is assumed at port 1080.

in bash

$ http_proxy=http://your.proxy.server:port/ curl #.... $ https_proxy=https://your.proxy.server:port/ curl #....
0 like 0 dislike
curl supports proxies fine, example and Google it for a couple of minutes

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
35,390 users