简体   繁体   中英

Not able to install docker-machine in Centos 7

Docker is installed in my Centos 7 machine:

Client: Version:      17.03.1-ce API version:  1.27
Server:  Version:      17.03.1-ce  API version:  1.27 (minimum version 1.12)

But I am not able to install docker-machine. Below is how I try to install it:

wget https://github.com/docker/machine/releases/download/v0.6.0/docker-machine-$(uname
-s)-$(uname -m)
mv docker-machine-Linux-x86_64 docker-machine
chmod +x docker-machine
sudo mv docker-machine /usr/local/bin

And when I check for the docker-machine version,

docker-machine version

I get below error:

bash: docker-machine: command not found...

移至/usr/bin instead /usr/local/bin

mv docker-machine /usr/bin

Try to add the docker-machine to your path as shown here: Docker Installing bash completion

If not are you able to run /usr/local/bin/docker-machine version

Any errors and full output would be appreciated!

I have followed your steps, that is:

wget https://github.com/docker/machine/releases/download/v0.6.0/docker-
machine-$(uname-s)-$(uname
-m) mv docker-machine-Linux-x86_64 docker-machine chmod +x docker-machine

but at this point instead I wrote:

sudo cp docker-machine /usr/local/bin
docker-machine version
docker-machine version 0.6.0, build e27fb87

I hope it helps.

Agreed with @Tioma, doing the first step and it works perfectly

Install docker machine on Centos 7

[root@osboxes Desktop]# mv docker-machine-Linux-x86_64 docker-machine

[root@osboxes Desktop]# chmod +x docker-machine

[root@osboxes Desktop]# sudo mv docker-machine /usr/bin

[root@osboxes Desktop]# docker-machine version

docker-machine version 0.6.0, build e27fb87

You may try the following steps:

创建符号链接sudo ln -s /usr/local/bin/docker-machine /usr/bin/docker-machine

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM