{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/1221","labels_url":"https://api.github.com/repos/docker/machine/issues/1221/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/1221/comments","events_url":"https://api.github.com/repos/docker/machine/issues/1221/events","html_url":"https://github.com/docker/machine/issues/1221","id":79908598,"number":1221,"title":"Using docker-machine to import hosts using --driver=generic and/or --url, does not work.","user":{"login":"smakam","id":5288259,"avatar_url":"https://avatars.githubusercontent.com/u/5288259?v=3","gravatar_id":"","url":"https://api.github.com/users/smakam","html_url":"https://github.com/smakam","followers_url":"https://api.github.com/users/smakam/followers","following_url":"https://api.github.com/users/smakam/following{/other_user}","gists_url":"https://api.github.com/users/smakam/gists{/gist_id}","starred_url":"https://api.github.com/users/smakam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smakam/subscriptions","organizations_url":"https://api.github.com/users/smakam/orgs","repos_url":"https://api.github.com/users/smakam/repos","events_url":"https://api.github.com/users/smakam/events{/privacy}","received_events_url":"https://api.github.com/users/smakam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/machine/labels/driver/generic","name":"driver/generic","color":"207de5"},{"url":"https://api.github.com/repos/docker/machine/labels/kind/bug","name":"kind/bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":52,"created_at":"2015-05-23T17:43:40Z","updated_at":"2016-02-01T15:11:42Z","closed_at":null,"body":"hi folks\r\nThis is not an issue. I am sorry if this is the wrong place to ask this question. If this is not the right place, please point me to the right place.\r\n\r\nI understand that we can use docker-machine to connect to different hosts using drivers like Virtualbox, cloud provider driver etc. If I already have a host running Docker inside baremetal Linux, how do we integrate this with docker-machine? Without docker-machine, I could do the same by running a Docker daemon on a particular port and connecting externally from docker client to the docker daemon ip and port. There is an option in docker-machine to create a host without any driver, is that for this purpose? I couldnt find how to use it to connect.\r\n\r\nThanks\r\nSreenivas"},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/178009312","html_url":"https://github.com/docker/machine/issues/1221#issuecomment-178009312","issue_url":"https://api.github.com/repos/docker/machine/issues/1221","id":178009312,"user":{"login":"devcrust","id":1508821,"avatar_url":"https://avatars.githubusercontent.com/u/1508821?v=3","gravatar_id":"","url":"https://api.github.com/users/devcrust","html_url":"https://github.com/devcrust","followers_url":"https://api.github.com/users/devcrust/followers","following_url":"https://api.github.com/users/devcrust/following{/other_user}","gists_url":"https://api.github.com/users/devcrust/gists{/gist_id}","starred_url":"https://api.github.com/users/devcrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devcrust/subscriptions","organizations_url":"https://api.github.com/users/devcrust/orgs","repos_url":"https://api.github.com/users/devcrust/repos","events_url":"https://api.github.com/users/devcrust/events{/privacy}","received_events_url":"https://api.github.com/users/devcrust/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T15:11:42Z","updated_at":"2016-02-01T15:11:42Z","body":"Scenario: Existing and working server with Docker and TLS enabled.\r\n\r\nAdd existing server/machine to docker-machine:\r\n\r\n`docker-machine --tls-ca-cert path/to/ca.pem  --tls-ca-key path/to/ca-key.pem --tls-client-cert path/to/client.pem --tls-client-key path/to/client-key.pem create --driver none --url tcp://HOST:2376 NAME` \r\n\r\nIn your user directory (~/.docker/machine/machines/NAME) add the same client certificate as \"cert.pem\" and \"server.pem\" and the client certificate key as \"key.pem\" and \"server-key.pem\" also adjust your config.json to include the relevant SSH settings..."}}