How to use docker-machine on a private server?
<p>I want to install docker hosts on a server running CentOS7(that's running in Virtualbox on my PC if it matters). </p>

<p>I'm aware that there are drivers for multiple cloud providers (Amazon, Google, DigitalOcean etc) but I can't figure out what to do if I want to use my own private server.</p>

<p>I've tried using <code>--driver generic</code> with the guest OS's IP, and an SSH key I created and copied using <code>ssh-keygen</code> and <code>ssh-copy-id</code> but I got</p>

<pre><code>$ docker-machine create -d generic --generic-ip-address=&lt;IP&gt; --generic-ssh-key ~/.ss
h/id_rsa --generic-ssh-user &lt;user&gt; centos

Running pre-create checks...
Creating machine...
(centos) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with centos...
Error creating machine: Error running provisioning: exit status 1
</code></pre>

<p>What am I doing wrong?</p>

<p>Can it have something to do with the fact that I installed CentOS in Virtualbox?</p>