E
E
Evgeny Romashkan2018-04-28 13:31:25
linux
Evgeny Romashkan, 2018-04-28 13:31:25

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

This is the command to download and install docker-compose:

sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-Linux-x86_64"

But the address in quotes is not available without a proxy (checked in the browser). It downloads through a proxy.
Can I somehow install the already downloaded file through the console?
UPD: I distributed the Internet from my mobile and downloaded through it. There the address was available.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-04-28
@EvgeniiR

man curl

x, --proxy <[protocol://][user:[email protected]]proxyhost[:port]>

     Use the specified HTTP proxy. 
     If the port number is not specified, it is assumed at port 1080.

bash
$ http_proxy=http://your.proxy.server:port/ curl #....

$ https_proxy=https://your.proxy.server:port/ curl #....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question