machine icon indicating copy to clipboard operation
machine copied to clipboard

Provided commands to install Docker Machine on Linux don't work

Open keitaj opened this issue 9 years ago • 4 comments

https://docs.docker.com/machine/install-machine/

I could not install docker-machine on Linux, but it could by following.

$ curl -L https://github.com/docker/machine/releases/download/v0.8.2/docker-machine-`uname -s`-`uname -m` -o /usr/local/bin/docker-machine && \
chmod +x /usr/local/bin/docker-machine

keitaj avatar Dec 06 '16 01:12 keitaj

Can you paste the error and command you attempted please? Command looks fine to me. Thanks.

nathanleclaire avatar Dec 06 '16 19:12 nathanleclaire

Failed

$ curl -L https://github.com/docker/machine/releases/download/v0.8.2/docker-machine-`uname -s`-`uname -m` > sudo /usr/local/bin/docker-machine && sudo chmod +x /usr/local/bin/docker-machine                                        
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   600    0   600    0     0    676      0 --:--:-- --:--:-- --:--:--   676
100 23.4M  100 23.4M    0     0  2681k      0  0:00:08  0:00:08 --:--:-- 5315k
curl: (3) <url> malformed

Successed

$ sudo curl -L https://github.com/docker/machine/releases/download/v0.8.2/docker-machine-`uname -s`-`uname -m` -o /usr/local/bin/docker-machine
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   600    0   600    0     0    704      0 --:--:-- --:--:-- --:--:--   704
100 23.4M  100 23.4M    0     0  2926k      0  0:00:08  0:00:08 --:--:-- 5109k
$ sudo chmod +x /usr/local/bin/docker-machine

keitaj avatar Dec 20 '16 04:12 keitaj

curl -L https://github.com/docker/machine/releases/download/v0.8.2/docker-machine-uname -s-uname -m> sudo /usr/local/bin/docker-machine && sudo chmod +x /usr/local/bin/docker-machine is defintely wrong (looks like you redirect using > to sudo ... ... not sure what's going on there ... I think there is an issue with the copy-paste install on Linux generally though.

nathanleclaire avatar Dec 28 '16 21:12 nathanleclaire

yeah this is what i was referring to :

$ curl -L https://github.com/docker/machine/releases/download/v0.9.0-rc2/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine && \
>   chmod +x /usr/local/bin/docker-machine
-bash: /usr/local/bin/docker-machine: Permission denied

nathanleclaire avatar Dec 28 '16 23:12 nathanleclaire