docker-machine version 命令找不到

来源:2-7 Docker Machine的本地使用

慕盖茨5931195

2018-04-12

老师我的是Mac, 也是按照前面步骤来装的。命令找不到,这个还需要单独配置环境变了吗?MrdeMacBook-Pro:centos7 a2991008810$ docker-machine version -bash: docker-machine: command not found

如果配,怎么配上呢

写回答

2回答

慕盖茨5931195

提问者

2018-04-12









MrdeMacBook-Pro:centos7 a2991008810$ vagrant ssh

Last login: Thu Apr 12 03:56:58 2018 from 10.0.2.2

[vagrant@localhost ~]$ docker version

Client:

 Version: 18.03.0-ce

 API version: 1.37

 Go version: go1.9.4

 Git commit: 0520e24

 Built: Wed Mar 21 23:09:15 2018

 OS/Arch: linux/amd64

 Experimental: false

 Orchestrator: swarm

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.37/version: dial unix /var/run/docker.sock: connect: permission denied

[vagrant@localhost ~]$ exit

logout

Connection to 127.0.0.1 closed.

MrdeMacBook-Pro:centos7 a2991008810$ docker-machine version

-bash: docker-machine: command not found

MrdeMacBook-Pro:centos7 a2991008810$ 

0
0

麦兜搞IT

2018-04-12

您好,我没有看明白,您是在mac上的centos里安装使用docker-machine么

0
3
麦兜搞IT
回复
慕盖茨5931195
嗯,实在不行,您尝试手动安装下docker Machine吧 https://docs.docker.com/machine/install-machine/#install-machine-directly
2018-04-12
共3条回复

系统学习Docker 践行DevOps理念

无论你是开发、测试还是运维,Docker都是你的必备技能。

3297 学习 · 1895 问题

查看课程