{"action":"created","issue":{"url":"https://api.github.com/repos/boot2docker/boot2docker/issues/968","labels_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/968/labels{/name}","comments_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/968/comments","events_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/968/events","html_url":"https://github.com/boot2docker/boot2docker/issues/968","id":92740691,"number":968,"title":"On boot2docker VM restart, boot2docker certificates stop working","user":{"login":"taxilian","id":224334,"avatar_url":"https://avatars.githubusercontent.com/u/224334?v=3","gravatar_id":"","url":"https://api.github.com/users/taxilian","html_url":"https://github.com/taxilian","followers_url":"https://api.github.com/users/taxilian/followers","following_url":"https://api.github.com/users/taxilian/following{/other_user}","gists_url":"https://api.github.com/users/taxilian/gists{/gist_id}","starred_url":"https://api.github.com/users/taxilian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taxilian/subscriptions","organizations_url":"https://api.github.com/users/taxilian/orgs","repos_url":"https://api.github.com/users/taxilian/repos","events_url":"https://api.github.com/users/taxilian/events{/privacy}","received_events_url":"https://api.github.com/users/taxilian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-07-02T21:36:23Z","updated_at":"2015-08-10T16:39:43Z","closed_at":null,"body":"When I try to run:\r\n\r\n    $ docker ps\r\n    FATA[0000] An error occurred trying to connect: Get https://192.168.59.103:2376/v1.18/containers/json: x509: certificate is valid for 127.0.0.1, 10.0.2.15, not 192.168.59.103\r\n\r\nI can fix this easily:\r\n\r\n    $ boot2docker stop\r\n    $ boot2docker delete\r\n    $ boot2docker initboot\r\n    $ boot2docker start\r\n    Waiting for VM and Docker daemon to start...\r\n    .........................oooooooooooooooooo\r\n    Started.\r\n    Writing /Users/myuser/.boot2docker/certs/boot2docker-vm/ca.pem\r\n    Writing /Users/myuser/.boot2docker/certs/boot2docker-vm/cert.pem\r\n    Writing /Users/myuser/.boot2docker/certs/boot2docker-vm/key.pem\r\n    Your environment variables are already set correctly.\r\n    $ docker ps\r\n    CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n\r\nHowever, if I restart the VM it stops working again immediately:\r\n\r\n    $ boot2docker stop\r\n    $ boot2docker start\r\n    Waiting for VM and Docker daemon to start...\r\n    ...................ooo\r\n    Started.\r\n    Writing /Users/myuser/.boot2docker/certs/boot2docker-vm/ca.pem\r\n    Writing /Users/myuser/.boot2docker/certs/boot2docker-vm/cert.pem\r\n    Writing /Users/myuser/.boot2docker/certs/boot2docker-vm/key.pem\r\n    Your environment variables are already set correctly.\r\n    $ docker ps\r\n    FATA[0000] An error occurred trying to connect: Get https://192.168.59.103:2376/v1.18/containers/json: x509: certificate is valid for 127.0.0.1, 10.0.2.15, not 192.168.59.103\r\n\r\nThis is 100% reproducible on both macs I've tried it on.\r\n\r\n    $ docker --version\r\n    Docker version 1.6.2, build 7c8fca2\r\n\r\n    $ boot2docker version\r\n    Boot2Docker-cli version: v1.7.0\r\n    Git commit: 7d89508\r\n\r\nMy system information:\r\n\r\n![screenshot 2015-07-02 15 35 24](https://cloud.githubusercontent.com/assets/224334/8488479/15a9d41c-20d0-11e5-8bfe-9259e9f01f41.png)\r\n"},"comment":{"url":"https://api.github.com/repos/boot2docker/boot2docker/issues/comments/129521620","html_url":"https://github.com/boot2docker/boot2docker/issues/968#issuecomment-129521620","issue_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/968","id":129521620,"user":{"login":"timmles","id":3469626,"avatar_url":"https://avatars.githubusercontent.com/u/3469626?v=3","gravatar_id":"","url":"https://api.github.com/users/timmles","html_url":"https://github.com/timmles","followers_url":"https://api.github.com/users/timmles/followers","following_url":"https://api.github.com/users/timmles/following{/other_user}","gists_url":"https://api.github.com/users/timmles/gists{/gist_id}","starred_url":"https://api.github.com/users/timmles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmles/subscriptions","organizations_url":"https://api.github.com/users/timmles/orgs","repos_url":"https://api.github.com/users/timmles/repos","events_url":"https://api.github.com/users/timmles/events{/privacy}","received_events_url":"https://api.github.com/users/timmles/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T16:39:43Z","updated_at":"2015-08-10T16:39:43Z","body":"I vote this be closed as well. I was on boot2docker 1.5.0, I used `homebrew upgrade boot2docker` to upgrade. Using `boot2docker -v` it showed version 1.7.1, and the problem still remained. But I later found that the iso had not been updated, and once I ran `boot2docker download` the problem was resolved.\r\n\r\nI can now run the following without errors:\r\n\r\n    boot2docker destroy\r\n    boot2docker init\r\n    boot2docker start\r\n    docker ps\r\n    boot2docker stop\r\n    boot2docker start\r\n    docker ps"}}