[英]Not able to install docker-machine in Centos 7
Docker is installed in my Centos 7 machine: Docker安装在我的Centos 7机器上:
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. 但我无法安装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版本时,
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 尝试将docker-machine添加到您的路径,如下所示: Docker安装bash完成
If not are you able to run /usr/local/bin/docker-machine version
如果不是,那么您可以运行
/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 同意@Tioma,进行第一步,它可以完美运行
Install docker machine on Centos 7 在Centos 7上安装Docker计算机
[root@osboxes Desktop]# mv docker-machine-Linux-x86_64 docker-machine
[root @ osboxes Desktop]#mv docker-machine-Linux-x86_64 docker-machine
[root@osboxes Desktop]# chmod +x docker-machine
[root @ osboxes Desktop]#chmod + x docker-machine
[root@osboxes Desktop]# sudo mv docker-machine /usr/bin
[root @ osboxes Desktop]#sudo mv docker-machine / usr / bin
[root@osboxes Desktop]# docker-machine version
[root @ osboxes Desktop]#docker-machine版本
docker-machine version 0.6.0, build e27fb87
docker-machine版本0.6.0,内部版本e27fb87
You may try the following steps: 您可以尝试以下步骤:
chmod +x docker-machine
chmod +x docker-machine
docker-machine version
to test if install works. docker-machine version
以测试安装是否有效。 创建符号链接sudo ln -s /usr/local/bin/docker-machine /usr/bin/docker-machine
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.