docker-machine添加一个已有的docker主机问题
淡淡烟草味
淡淡烟草味 2017-04-24 16:00:37
0
2
994

根据官方文档,在docker-machine通过url添加一个docker主机,命令如下


但在我使用的时候出现语法错误?

我的192.168.20.108启用了tcp配置的

[root@localhost ~]# ps -ef|grep docker
root      2600     1  0 18:18 ?        00:00:02 /usr/bin/dockerd --registry-mirror=https://2lqq34jg.mirror.aliyuncs.com --registry-mirror=http://hub-mirror.c.163.com --insecure-registry=192.168.10.38:5000 -H 0.0.0.0:2375 -H unix:///var/run/docker.sock

所以,这是为咋不行的?

淡淡烟草味
淡淡烟草味

reply all(2)
某草草

The official document cannot be updated at this point, and a PR has been submitted.

The current docker-machine 要求使用 --driver none clearly states the case of not using the driver. Therefore the created command should be modified to:

docker-machine create -d none --url=tcp://192.168.20.108:2375 vmware_docker01
phpcn_u1582

What version are you using? The latest version of docker machine does not support this option. You can see that the options you type do not have this option either

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template