{"action":"opened","number":2486,"pull_request":{"url":"https://api.github.com/repos/docker/machine/pulls/2486","id":52518061,"html_url":"https://github.com/docker/machine/pull/2486","diff_url":"https://github.com/docker/machine/pull/2486.diff","patch_url":"https://github.com/docker/machine/pull/2486.patch","issue_url":"https://api.github.com/repos/docker/machine/issues/2486","number":2486,"state":"open","locked":false,"title":"issue #2485, If a permanent IP address and hostname has alread in /etc/hosts","user":{"login":"dongmx","id":11346514,"avatar_url":"https://avatars.githubusercontent.com/u/11346514?v=3","gravatar_id":"","url":"https://api.github.com/users/dongmx","html_url":"https://github.com/dongmx","followers_url":"https://api.github.com/users/dongmx/followers","following_url":"https://api.github.com/users/dongmx/following{/other_user}","gists_url":"https://api.github.com/users/dongmx/gists{/gist_id}","starred_url":"https://api.github.com/users/dongmx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongmx/subscriptions","organizations_url":"https://api.github.com/users/dongmx/orgs","repos_url":"https://api.github.com/users/dongmx/repos","events_url":"https://api.github.com/users/dongmx/events{/privacy}","received_events_url":"https://api.github.com/users/dongmx/received_events","type":"User","site_admin":false},"body":"This comment in the source code. \r\n// ubuntu/debian use 127.0.1.1 for non \"localhost\" loopback hostnames: https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution\r\n\r\nAs the document says \"For a system with a permanent IP address, that permanent IP address should be used here instead of 127.0.1.1.\"  \r\nBut if there is already a permanent IP address and hostname in /etc/hosts, docker-machine with insert a line \"127.0.1.1 hostname\" into /etc/hosts which cause one hostname multi addresses.\r\n\r\nSo I judge if the hostname has already in /etc/hosts, if true; do nothing, else do as usual.\r\n\r\nSigned-off-by: Mingxin Dong <dongmx@dmx.xyz>","created_at":"2015-12-03T10:48:25Z","updated_at":"2015-12-03T10:48:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/machine/pulls/2486/commits","review_comments_url":"https://api.github.com/repos/docker/machine/pulls/2486/comments","review_comment_url":"https://api.github.com/repos/docker/machine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/machine/issues/2486/comments","statuses_url":"https://api.github.com/repos/docker/machine/statuses/676b978df9ec6c259c7a202abb4cb0743257f312","head":{"label":"dongmx:issue2485","ref":"issue2485","sha":"676b978df9ec6c259c7a202abb4cb0743257f312","user":{"login":"dongmx","id":11346514,"avatar_url":"https://avatars.githubusercontent.com/u/11346514?v=3","gravatar_id":"","url":"https://api.github.com/users/dongmx","html_url":"https://github.com/dongmx","followers_url":"https://api.github.com/users/dongmx/followers","following_url":"https://api.github.com/users/dongmx/following{/other_user}","gists_url":"https://api.github.com/users/dongmx/gists{/gist_id}","starred_url":"https://api.github.com/users/dongmx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongmx/subscriptions","organizations_url":"https://api.github.com/users/dongmx/orgs","repos_url":"https://api.github.com/users/dongmx/repos","events_url":"https://api.github.com/users/dongmx/events{/privacy}","received_events_url":"https://api.github.com/users/dongmx/received_events","type":"User","site_admin":false},"repo":{"id":47311108,"name":"machine","full_name":"dongmx/machine","owner":{"login":"dongmx","id":11346514,"avatar_url":"https://avatars.githubusercontent.com/u/11346514?v=3","gravatar_id":"","url":"https://api.github.com/users/dongmx","html_url":"https://github.com/dongmx","followers_url":"https://api.github.com/users/dongmx/followers","following_url":"https://api.github.com/users/dongmx/following{/other_user}","gists_url":"https://api.github.com/users/dongmx/gists{/gist_id}","starred_url":"https://api.github.com/users/dongmx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongmx/subscriptions","organizations_url":"https://api.github.com/users/dongmx/orgs","repos_url":"https://api.github.com/users/dongmx/repos","events_url":"https://api.github.com/users/dongmx/events{/privacy}","received_events_url":"https://api.github.com/users/dongmx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dongmx/machine","description":"Machine management for a container-centric world","fork":true,"url":"https://api.github.com/repos/dongmx/machine","forks_url":"https://api.github.com/repos/dongmx/machine/forks","keys_url":"https://api.github.com/repos/dongmx/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dongmx/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dongmx/machine/teams","hooks_url":"https://api.github.com/repos/dongmx/machine/hooks","issue_events_url":"https://api.github.com/repos/dongmx/machine/issues/events{/number}","events_url":"https://api.github.com/repos/dongmx/machine/events","assignees_url":"https://api.github.com/repos/dongmx/machine/assignees{/user}","branches_url":"https://api.github.com/repos/dongmx/machine/branches{/branch}","tags_url":"https://api.github.com/repos/dongmx/machine/tags","blobs_url":"https://api.github.com/repos/dongmx/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dongmx/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dongmx/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/dongmx/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dongmx/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/dongmx/machine/languages","stargazers_url":"https://api.github.com/repos/dongmx/machine/stargazers","contributors_url":"https://api.github.com/repos/dongmx/machine/contributors","subscribers_url":"https://api.github.com/repos/dongmx/machine/subscribers","subscription_url":"https://api.github.com/repos/dongmx/machine/subscription","commits_url":"https://api.github.com/repos/dongmx/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/dongmx/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/dongmx/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/dongmx/machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/dongmx/machine/contents/{+path}","compare_url":"https://api.github.com/repos/dongmx/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dongmx/machine/merges","archive_url":"https://api.github.com/repos/dongmx/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dongmx/machine/downloads","issues_url":"https://api.github.com/repos/dongmx/machine/issues{/number}","pulls_url":"https://api.github.com/repos/dongmx/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/dongmx/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/dongmx/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dongmx/machine/labels{/name}","releases_url":"https://api.github.com/repos/dongmx/machine/releases{/id}","created_at":"2015-12-03T05:50:43Z","updated_at":"2015-12-03T05:50:45Z","pushed_at":"2015-12-03T10:41:47Z","git_url":"git://github.com/dongmx/machine.git","ssh_url":"git@github.com:dongmx/machine.git","clone_url":"https://github.com/dongmx/machine.git","svn_url":"https://github.com/dongmx/machine","homepage":"https://docs.docker.com/machine/","size":10812,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"029b39ee62bcaf64bc8f988ef6657e3d62eb0008","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":27494663,"name":"machine","full_name":"docker/machine","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/machine","description":"Machine management for a container-centric world","fork":false,"url":"https://api.github.com/repos/docker/machine","forks_url":"https://api.github.com/repos/docker/machine/forks","keys_url":"https://api.github.com/repos/docker/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/machine/teams","hooks_url":"https://api.github.com/repos/docker/machine/hooks","issue_events_url":"https://api.github.com/repos/docker/machine/issues/events{/number}","events_url":"https://api.github.com/repos/docker/machine/events","assignees_url":"https://api.github.com/repos/docker/machine/assignees{/user}","branches_url":"https://api.github.com/repos/docker/machine/branches{/branch}","tags_url":"https://api.github.com/repos/docker/machine/tags","blobs_url":"https://api.github.com/repos/docker/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/machine/languages","stargazers_url":"https://api.github.com/repos/docker/machine/stargazers","contributors_url":"https://api.github.com/repos/docker/machine/contributors","subscribers_url":"https://api.github.com/repos/docker/machine/subscribers","subscription_url":"https://api.github.com/repos/docker/machine/subscription","commits_url":"https://api.github.com/repos/docker/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/machine/contents/{+path}","compare_url":"https://api.github.com/repos/docker/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/machine/merges","archive_url":"https://api.github.com/repos/docker/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/machine/downloads","issues_url":"https://api.github.com/repos/docker/machine/issues{/number}","pulls_url":"https://api.github.com/repos/docker/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/machine/labels{/name}","releases_url":"https://api.github.com/repos/docker/machine/releases{/id}","created_at":"2014-12-03T15:52:06Z","updated_at":"2015-12-03T08:17:07Z","pushed_at":"2015-12-03T10:48:25Z","git_url":"git://github.com/docker/machine.git","ssh_url":"git@github.com:docker/machine.git","clone_url":"https://github.com/docker/machine.git","svn_url":"https://github.com/docker/machine","homepage":"https://docs.docker.com/machine/","size":30957,"stargazers_count":2749,"watchers_count":2749,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":633,"mirror_url":null,"open_issues_count":391,"forks":633,"open_issues":391,"watchers":2749,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/machine/pulls/2486"},"html":{"href":"https://github.com/docker/machine/pull/2486"},"issue":{"href":"https://api.github.com/repos/docker/machine/issues/2486"},"comments":{"href":"https://api.github.com/repos/docker/machine/issues/2486/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/machine/pulls/2486/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/machine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/machine/pulls/2486/commits"},"statuses":{"href":"https://api.github.com/repos/docker/machine/statuses/676b978df9ec6c259c7a202abb4cb0743257f312"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":2,"changed_files":1}}