Docker Community Forums

Share and learn in the Docker community.

Creating docker-machine -d generic => fails for docker 1.10 remote host


(Hlafleur) #1

Wanted to share before submitting this to the community as an issue…

I’m trying to docker-machine (0.6.0 on OSX) create an existing docker host (docker 1.10 on arch linux) running on vbox:

Running pre-create checks...
Creating machine...
(archie) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Machine is running, waiting for SSH to be available...
Detecting operating system of created instance...
Detecting the provisioner...
Provisioning with arch...
Copying certs to the local machine directory...
Copying certs to the remote machine...
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```

**Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded**

So when I look at the arch linux box and check the service configuration of docker-engine:
```[root@archie system]# cat docker.service 
[Service]
ExecStart=/usr/bin/docker -d -H [...]```

I notice the daemon is configured to start with "```docker -d```" instead of "```docker daemon```", which actually doesn't seem to work with 1.10. If I set this manually to "```/usr/bin/docker daemon```" in the unit file, docker-machine will change it back to "```docker -d```".

Thoughts?

(Jeff Anderson) #2

Can you rurun your command with --debug?

docker-machine --debug create -d generic --generic-ip-address [...] --generic-ssh-user [...] --generic-ssh-key [...] archie