{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/2844","repository_url":"https://api.github.com/repos/docker/compose","labels_url":"https://api.github.com/repos/docker/compose/issues/2844/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/2844/comments","events_url":"https://api.github.com/repos/docker/compose/issues/2844/events","html_url":"https://github.com/docker/compose/issues/2844","id":131962317,"number":2844,"title":"Host networking does not work with version 2 format","user":{"login":"bobrik","id":89186,"avatar_url":"https://avatars.githubusercontent.com/u/89186?v=3","gravatar_id":"","url":"https://api.github.com/users/bobrik","html_url":"https://github.com/bobrik","followers_url":"https://api.github.com/users/bobrik/followers","following_url":"https://api.github.com/users/bobrik/following{/other_user}","gists_url":"https://api.github.com/users/bobrik/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrik/subscriptions","organizations_url":"https://api.github.com/users/bobrik/orgs","repos_url":"https://api.github.com/users/bobrik/repos","events_url":"https://api.github.com/users/bobrik/events{/privacy}","received_events_url":"https://api.github.com/users/bobrik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-07T12:12:48Z","updated_at":"2016-02-07T17:45:14Z","closed_at":"2016-02-07T17:45:14Z","body":"```\r\n$ docker-compose --version\r\ndocker-compose version 1.6.0, build unknown\r\n```\r\n\r\n```yaml\r\nversion: \"2\"\r\n\r\nnetworks:\r\n  default:\r\n    external:\r\n      name: host\r\n\r\nservices:\r\n  huh:\r\n    image: alpine:3.3\r\n    command: sleep 3600\r\n```\r\n\r\n```\r\nERROR: Container cannot be disconnected from host network or connected to host network\r\n```\r\n\r\nI can't find how to make it work with the new version. If there is no way, then there should be one. If there is a way, it should be documented."},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/181059805","html_url":"https://github.com/docker/compose/issues/2844#issuecomment-181059805","issue_url":"https://api.github.com/repos/docker/compose/issues/2844","id":181059805,"user":{"login":"dnephin","id":442180,"avatar_url":"https://avatars.githubusercontent.com/u/442180?v=3","gravatar_id":"","url":"https://api.github.com/users/dnephin","html_url":"https://github.com/dnephin","followers_url":"https://api.github.com/users/dnephin/followers","following_url":"https://api.github.com/users/dnephin/following{/other_user}","gists_url":"https://api.github.com/users/dnephin/gists{/gist_id}","starred_url":"https://api.github.com/users/dnephin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnephin/subscriptions","organizations_url":"https://api.github.com/users/dnephin/orgs","repos_url":"https://api.github.com/users/dnephin/repos","events_url":"https://api.github.com/users/dnephin/events{/privacy}","received_events_url":"https://api.github.com/users/dnephin/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T17:45:14Z","updated_at":"2016-02-07T17:45:14Z","body":"https://docs.docker.com/compose/compose-file/#upgrading:91de898b5f5cdb090642a917d3dedf68 (see `net` -> `network_mode`)\r\n\r\nhttps://docs.docker.com/compose/compose-file/#network-mode:91de898b5f5cdb090642a917d3dedf68"}}