This repository has been archived by the owner. It is now read-only.

Connect to externel docker host through docker-machine #1

Open
wants to merge 3 commits into
from

Conversation

Projects
None yet
1 participant
@DieterReuter
Collaborator

DieterReuter commented Mar 14, 2015

We are using a special version of 'docker-machine' which has a driver 'hypriot' built-in (details can be found in this PR hypriot/machine#1).

To create a machine for an already existing Boot2Docker VM, just use the following command:

docker-machine create --driver=hypriot --hypriot-docker-ipaddress=192.168.59.103 dev

Then you have to copy your certs, key files to this directory:

cp ~/.boot2docker/certs/boot2docker-vm/* ~/.docker/machine/machines/dev/
cp ~/.ssh/id_boot2docker ~/.docker/machine/machines/dev/id_rsa
cp ~/.ssh/id_boot2docker.pub ~/.docker/machine/machines/dev/id_rsa.pub
馃惓  ls -al ~/.docker/machine/machines/dev/
-rw-r--r--  1 dieter  staff  1042 Mar 14 18:36 ca.pem
-rw-r--r--  1 dieter  staff  1066 Mar 14 18:36 cert.pem
-rw-------  1 dieter  staff   320 Mar 14 18:32 config.json
-rw-------  1 dieter  staff  1675 Mar 14 21:55 id_rsa
-rw-r--r--  1 dieter  staff   414 Mar 14 21:55 id_rsa.pub
-rw-r--r--  1 dieter  staff  1675 Mar 14 18:36 key.pem

That's all for this POC.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.