{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/3019","repository_url":"https://api.github.com/repos/docker/compose","labels_url":"https://api.github.com/repos/docker/compose/issues/3019/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/3019/comments","events_url":"https://api.github.com/repos/docker/compose/issues/3019/events","html_url":"https://github.com/docker/compose/issues/3019","id":136416238,"number":3019,"title":"`dockerfile` service value documentation wrongly states it doesn't work with `image`","user":{"login":"triccardi-systran","id":1730297,"avatar_url":"https://avatars.githubusercontent.com/u/1730297?v=3","gravatar_id":"","url":"https://api.github.com/users/triccardi-systran","html_url":"https://github.com/triccardi-systran","followers_url":"https://api.github.com/users/triccardi-systran/followers","following_url":"https://api.github.com/users/triccardi-systran/following{/other_user}","gists_url":"https://api.github.com/users/triccardi-systran/gists{/gist_id}","starred_url":"https://api.github.com/users/triccardi-systran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triccardi-systran/subscriptions","organizations_url":"https://api.github.com/users/triccardi-systran/orgs","repos_url":"https://api.github.com/users/triccardi-systran/repos","events_url":"https://api.github.com/users/triccardi-systran/events{/privacy}","received_events_url":"https://api.github.com/users/triccardi-systran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/compose/labels/kind/docs","name":"kind/docs","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T15:15:44Z","updated_at":"2016-02-25T22:20:34Z","closed_at":null,"body":"[`dockerfile` doc](https://docs.docker.com/compose/compose-file/#dockerfile) hasn't been updated with Compose File v2 format:\r\n\r\n> Using dockerfile together with image is not allowed. Attempting to do so results in an error.\r\n\r\nThis is wrong for v2 format, it does work:\r\n```yaml\r\nversion: '2'\r\nservices:\r\n  app:\r\n    image: redis\r\n    build:\r\n      dockerfile: Dockerfile\r\n      context: .\r\n```\r\n\r\n```shell\r\n$ docker-compose config\r\nnetworks: {}\r\nservices:\r\n  test:\r\n    build:\r\n      context: /xxx\r\n      dockerfile: Dockerfile\r\n    image: redis\r\nversion: '2.0'\r\nvolumes: {}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/189010180","html_url":"https://github.com/docker/compose/issues/3019#issuecomment-189010180","issue_url":"https://api.github.com/repos/docker/compose/issues/3019","id":189010180,"user":{"login":"aanand","id":1062,"avatar_url":"https://avatars.githubusercontent.com/u/1062?v=3","gravatar_id":"","url":"https://api.github.com/users/aanand","html_url":"https://github.com/aanand","followers_url":"https://api.github.com/users/aanand/followers","following_url":"https://api.github.com/users/aanand/following{/other_user}","gists_url":"https://api.github.com/users/aanand/gists{/gist_id}","starred_url":"https://api.github.com/users/aanand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aanand/subscriptions","organizations_url":"https://api.github.com/users/aanand/orgs","repos_url":"https://api.github.com/users/aanand/repos","events_url":"https://api.github.com/users/aanand/events{/privacy}","received_events_url":"https://api.github.com/users/aanand/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T22:20:34Z","updated_at":"2016-02-25T22:20:34Z","body":"It has been updated. That sentence appears beneath this one:\r\n\r\n> Note: In the version 1 file format, dockerfile is different in two ways:\r\n\r\nHowever, the formatting is strange and makes it look like those two statements are unconnected, so it's not as clear as it could be.\r\n\r\n@moxiegirl @londoncalling: this looks like a CSS issue. Rather than adding a single left border to the enclosing `blockquote`, we're adding one to every `p` tag, resulting in multiple borders at different levels of indentation:\r\n\r\n<img width=\"639\" alt=\"screen shot 2016-02-25 at 14 18 57\" src=\"https://cloud.githubusercontent.com/assets/1062/13336429/c0d6009e-dbca-11e5-9a60-7270057b92c1.png\">\r\n\r\nCan this be changed? If not, how should we change the markup/wording to make this section clearer?"}}