# Problems connecting docker-machine to rancherOS

**URL:** <https://forums.suse.com/t/problems-connecting-docker-machine-to-rancheros/4101>\
**Category:** RancherOS\
**Created:** [September 24, 2016, 9:43am UTC](https://forums.suse.com/t/problems-connecting-docker-machine-to-rancheros/4101 "2016-09-24T09:43:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Italo\_Maia](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/italo_maia/32/1717_2.png) [@Italo\_Maia](https://forums.suse.com/u/Italo_Maia)\
**Post date:** [September 24, 2016, 9:43am UTC](https://forums.suse.com/t/problems-connecting-docker-machine-to-rancheros/4101/1 "2016-09-24T09:43:11Z")

</div>

I just had RancherOS installed to a KVM machine. Had to setup a password to upload cloud-config.yml and all, but it went fine. My cloud-config looks like this:

```
hostname: rancher-01
ssh_authorized_keys:
  - ssh-rsa ...
rancher:
  docker:
    tls: true
  network:
    interfaces:
      eth*:
        dhcp: false
      eth0:
        address: 192.168.122.10/24
        gateway: 192.168.122.1
        mtu: 1500
  dns:
    - 8.8.8.8
    - 8.8.4.4

```

So far, so good. Then installed docker-machine on my local machine and tried to add my new docker vm to it. Result? Nasty error:

> Unable to query docker version: Cannot connect to the docker engine endpoint

Docs have it that “some errors” may happen at this step. Then further we go: tried this command:

> docker-machine env rancher-01

And got myself this error:

> Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host “192.168.122.10:2376”: dial tcp 192.168.122.10:2376: getsockopt: connection refused

Following some internet advise, I tried running this:

> docker-machine regenerate-certs rancher-01

Which led me to pinpoint where the problem came from:

> Setting Docker configuration on the remote daemon  
> Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded

Now, am I missing something?

---

<div class="post-metadata">

**Author:** ![Italo\_Maia](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/italo_maia/32/1717_2.png) [@Italo\_Maia](https://forums.suse.com/u/Italo_Maia)\
**Post date:** [September 24, 2016, 10:18am UTC](https://forums.suse.com/t/problems-connecting-docker-machine-to-rancheros/4101/2 "2016-09-24T10:18:04Z")

</div>

It seems docker: tls: true made things not work. Trying to figure out why … (help appreciated =])
