{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/compose/issues/2719","labels_url":"https://api.github.com/repos/docker/compose/issues/2719/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/2719/comments","events_url":"https://api.github.com/repos/docker/compose/issues/2719/events","html_url":"https://github.com/docker/compose/issues/2719","id":127869525,"number":2719,"title":"version:2 extends not working?","user":{"login":"alvinr","id":336450,"avatar_url":"https://avatars.githubusercontent.com/u/336450?v=3","gravatar_id":"","url":"https://api.github.com/users/alvinr","html_url":"https://github.com/alvinr","followers_url":"https://api.github.com/users/alvinr/followers","following_url":"https://api.github.com/users/alvinr/following{/other_user}","gists_url":"https://api.github.com/users/alvinr/gists{/gist_id}","starred_url":"https://api.github.com/users/alvinr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvinr/subscriptions","organizations_url":"https://api.github.com/users/alvinr/orgs","repos_url":"https://api.github.com/users/alvinr/repos","events_url":"https://api.github.com/users/alvinr/events{/privacy}","received_events_url":"https://api.github.com/users/alvinr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-21T08:19:36Z","updated_at":"2016-01-21T08:19:36Z","closed_at":null,"body":"# Problem\r\nIt appears that the extends syntax in Ver2 format is not working and gives the following message\r\n```\r\nERROR: Cannot extend service 'bar' in test-base.yml: Service not found\r\n```\r\n# Reproduce\r\ntest-base.yml\r\n```\r\nversion: 2\r\n\r\nservices:\r\n    bar:\r\n        image: python:2.7\r\n```\r\n\r\ntest-extends.ml\r\n```\r\nversion: 2\r\n\r\nservices:\r\n    foo:\r\n        extends:\r\n            file: test-base.yml\r\n            service: bar\r\n```\r\n\r\nRun with `docker-compose`\r\n```\r\n$ docker-compose -f test-extends.yml up\r\nERROR: Cannot extend service 'bar' in test-base.yml: Service not found\r\n```\r\n\r\n# Environment\r\n```\r\n$ docker-compose --version\r\ndocker-compose version 1.6.0rc1, build d2556a1\r\n```\r\n\r\n```\r\n$ uname -a\r\nDarwin vero-3.local 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64\r\nvero-3:~/prod-app$ \r\n```"}}