Home  >  Q&A  >  body text

docker-machine添加一个已有的docker主机问题

根据官方文档,在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

所以,这是为咋不行的?

淡淡烟草味淡淡烟草味2757 days ago986

reply all(2)I'll reply

  • 某草草

    某草草2017-04-24 16:02:37

    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

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-04-24 16:02:37

    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

    reply
    0
  • Cancelreply