{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18359","labels_url":"https://api.github.com/repos/docker/docker/issues/18359/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18359/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18359/events","html_url":"https://github.com/docker/docker/issues/18359","id":119878349,"number":18359,"title":"error running docker-machine env command on Windows","user":{"login":"tonyvu2014","id":7567119,"avatar_url":"https://avatars.githubusercontent.com/u/7567119?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyvu2014","html_url":"https://github.com/tonyvu2014","followers_url":"https://api.github.com/users/tonyvu2014/followers","following_url":"https://api.github.com/users/tonyvu2014/following{/other_user}","gists_url":"https://api.github.com/users/tonyvu2014/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyvu2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyvu2014/subscriptions","organizations_url":"https://api.github.com/users/tonyvu2014/orgs","repos_url":"https://api.github.com/users/tonyvu2014/repos","events_url":"https://api.github.com/users/tonyvu2014/events{/privacy}","received_events_url":"https://api.github.com/users/tonyvu2014/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-02T06:43:56Z","updated_at":"2015-12-03T09:46:44Z","closed_at":"2015-12-03T09:46:44Z","body":"I am trying to set up docker machine on Windows and this problem has annoyed me for a few days.\r\n\r\nI downloaded and installed DockerToolbox-1.9.1a on my Windows, so it came with Virtual Box version 5.0.10. After that I ran this command to create my virtual machine:\r\n\r\n**docker-machine create --driver virtualbox --engine-insecure-registry docker.pre-prod.ss.local:5000 --virtualbox-hostonly-cidr 192.168.99.100/24 mymachine**\r\n\r\nHere is what I got:\r\n\r\n```\r\nWaiting for machine to be running, this may take a few minutes...\r\nMachine is running, waiting for SSH to be available...\r\nDetecting operating system of created instance...\r\nDetecting the provisioner...\r\nProvisioning created instance...\r\nCopying certs to the local machine directory...\r\nCopying certs to the remote machine...\r\nSetting Docker configuration on the remote daemon...\r\nWARNING >>>\r\nThis machine has been allocated an IP address, but Docker Machine could not\r\nreach it successfully.\r\n\r\nSSH for the machine should still work, but connecting to exposed ports, such as\r\nthe Docker daemon port (usually <ip>:2376), may not work properly.\r\n\r\nYou may need to add the route manually, or use another related workaround\r\n\r\nThis could be due to a VPN, proxy, or host file configuration issue.\r\n\r\nYou also might want to clear any VirtualBox host only interfaces you are not using\r\n```\r\nThe machine was created successfully. So I ran the docker-machine env command:\r\n\r\n**docker-machine env --shell=powershell mymachine| Invoke-Expression**\r\n\r\nand I got:\r\n\r\n```\r\nError running connection boilerplate: Error checking and/or regenerating the certs: There was\r\nicates for host \"192.168.99.100:2376\": dial tcp 192.168.99.100:2376: connectex: No connection\r\ntarget machine actively refused it.\r\nYou can attempt to regenerate them using 'docker-machine regenerate-certs name'.\r\nBe advised that this will trigger a Docker daemon restart which will stop running containers.\r\n```\r\n\r\nRunning **docker version** returned\r\n\r\n```\r\nClient:\r\n Version:      1.9.1\r\n API version:  1.21\r\n Go version:   go1.4.3\r\n Git commit:   a34a1d5\r\n Built:        Fri Nov 20 17:56:04 UTC 2015\r\n OS/Arch:      windows/amd64\r\nAn error occurred trying to connect: Get http://localhost:2375/v1.21/version: dial tcp\r\n connection could be made because the target machine actively refused it.\r\n```\r\n\r\nCan someone help to point out the direction to fix this issue? It is really annoying to set up docker on Windows. Thank you very much.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/161570233","html_url":"https://github.com/docker/docker/issues/18359#issuecomment-161570233","issue_url":"https://api.github.com/repos/docker/docker/issues/18359","id":161570233,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T09:46:44Z","updated_at":"2015-12-03T09:46:44Z","body":"Good to hear, @tonyvu2014 thanks for reporting back.\r\n\r\nI'll close this issue"}}