{"action":"created","issue":{"url":"https://api.github.com/repos/wercker/support/issues/131","labels_url":"https://api.github.com/repos/wercker/support/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/wercker/support/issues/131/comments","events_url":"https://api.github.com/repos/wercker/support/issues/131/events","html_url":"https://github.com/wercker/support/issues/131","id":106512013,"number":131,"title":"\"New\" Mac OSX Docker Toolbox","user":{"login":"asfaltboy","id":321520,"avatar_url":"https://avatars.githubusercontent.com/u/321520?v=3","gravatar_id":"","url":"https://api.github.com/users/asfaltboy","html_url":"https://github.com/asfaltboy","followers_url":"https://api.github.com/users/asfaltboy/followers","following_url":"https://api.github.com/users/asfaltboy/following{/other_user}","gists_url":"https://api.github.com/users/asfaltboy/gists{/gist_id}","starred_url":"https://api.github.com/users/asfaltboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asfaltboy/subscriptions","organizations_url":"https://api.github.com/users/asfaltboy/orgs","repos_url":"https://api.github.com/users/asfaltboy/repos","events_url":"https://api.github.com/users/asfaltboy/events{/privacy}","received_events_url":"https://api.github.com/users/asfaltboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-15T08:53:06Z","updated_at":"2015-09-15T11:47:22Z","closed_at":null,"body":"I'm having some trouble using wercker cli tool with a fresh installation of Docker Toolbox for OSX.\r\n\r\nThe toolbox seems to install and run the machine on a different (randomly generated?) host:port than what wercker expects. I found that I had to run `docker-machine ls` to find the url for my virtualbox host, e.g: `tcp://192.168.99.99:2376`.\r\n\r\nHowever, even with the correct host, I'm still getting a fail when building locally:\r\n\r\n    $ DOCKER_HOST=tcp://192.168.99.99:2376  wercker build\r\n    ERROR Get https://192.168.99.99:2376/version: x509: certificate signed by unknown authority\r\n\r\nAny idea what other steps I should perform to get started with wercker?\r\n\r\nNote: I entered this scenario after reading [this deprecation message in docker docs](https://docs.docker.com/installation/mac/).\r\n\r\nA [similar issue](https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1) in gitlab ci, though still on boot2docker, hints at a possible solutions. Here is my default docker machine connection config:\r\n\r\n    $ docker-machine config default\r\n    --tlsverify --tlscacert=\"/Users/big/.docker/machine/machines/default/ca.pem\" --tlscert=\"/Users/big/.docker/machine/machines/default/cert.pem\" --tlskey=\"/Users/big/.docker/machine/machines/default/key.pem\" -H=tcp://192.168.99.99:2376\r\n\r\nK, seems this \"default\" machine is borked, I started a new one as [described in the docs](https://docs.docker.com/v1.5/machine/):\r\n\r\n    docker-machine create --driver virtualbox dev\r\n    export DOCKER_TLS_VERIFY=\"1\"\r\n    export DOCKER_HOST=\"tcp://192.168.99.101:2376\"\r\n    export DOCKER_CERT_PATH=\"/Users/big/.docker/machine/machines/dev\"\r\n    export DOCKER_MACHINE_NAME=\"dev\"\r\n    # Run this command to configure your shell:\r\n    # eval \"$(docker-machine env dev)\"\r\n\r\nNow **with this** machine, and I can now run `DOCKER_HOST=tcp://192.168.99.101:2376  wercker build` and it works as intended.\r\n\r\nThis should probably be somehow added to the docs."},"comment":{"url":"https://api.github.com/repos/wercker/support/issues/comments/140365667","html_url":"https://github.com/wercker/support/issues/131#issuecomment-140365667","issue_url":"https://api.github.com/repos/wercker/support/issues/131","id":140365667,"user":{"login":"asfaltboy","id":321520,"avatar_url":"https://avatars.githubusercontent.com/u/321520?v=3","gravatar_id":"","url":"https://api.github.com/users/asfaltboy","html_url":"https://github.com/asfaltboy","followers_url":"https://api.github.com/users/asfaltboy/followers","following_url":"https://api.github.com/users/asfaltboy/following{/other_user}","gists_url":"https://api.github.com/users/asfaltboy/gists{/gist_id}","starred_url":"https://api.github.com/users/asfaltboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asfaltboy/subscriptions","organizations_url":"https://api.github.com/users/asfaltboy/orgs","repos_url":"https://api.github.com/users/asfaltboy/repos","events_url":"https://api.github.com/users/asfaltboy/events{/privacy}","received_events_url":"https://api.github.com/users/asfaltboy/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T11:47:22Z","updated_at":"2015-09-15T11:47:22Z","body":"Thanks @hatchan, perhaps wercker can detect the correct host for \"default\" or \"dev\" machine before defaulting to localhost ?"}}