{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/compose/issues/1363","labels_url":"https://api.github.com/repos/docker/compose/issues/1363/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/1363/comments","events_url":"https://api.github.com/repos/docker/compose/issues/1363/events","html_url":"https://github.com/docker/compose/issues/1363","id":71464048,"number":1363,"title":"Automatic image naming is weird, change it or provide explicit naming option","user":{"login":"JonasT","id":1573352,"avatar_url":"https://avatars.githubusercontent.com/u/1573352?v=3","gravatar_id":"","url":"https://api.github.com/users/JonasT","html_url":"https://github.com/JonasT","followers_url":"https://api.github.com/users/JonasT/followers","following_url":"https://api.github.com/users/JonasT/following{/other_user}","gists_url":"https://api.github.com/users/JonasT/gists{/gist_id}","starred_url":"https://api.github.com/users/JonasT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonasT/subscriptions","organizations_url":"https://api.github.com/users/JonasT/orgs","repos_url":"https://api.github.com/users/JonasT/repos","events_url":"https://api.github.com/users/JonasT/events{/privacy}","received_events_url":"https://api.github.com/users/JonasT/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/compose/labels/area/config","name":"area/config","color":"c7def8"},{"url":"https://api.github.com/repos/docker/compose/labels/kind/feature","name":"kind/feature","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-28T03:06:48Z","updated_at":"2015-09-24T13:08:15Z","closed_at":"2015-09-24T13:08:15Z","body":"I have the following docker-compose.yml:\r\n\r\n```\r\nnginx:\r\n  build: .\r\n  ports:\r\n   - \"80:80\"\r\n```\r\n.. along with this Dockerfile in the same directory:\r\n```\r\nFROM ubuntu\r\n\r\nRUN apt-get update && apt-get upgrade -y\r\nRUN apt-get install -y nginx\r\n\r\nCMD nginx && tail -f /dev/null\r\n```\r\nNow if I do \"docker-compose up\", I get the following image entry:\r\n```\r\njonas@cyberman#11: docker images\r\nREPOSITORY                         TAG                 IMAGE ID            CREATED             VIRTUAL SIZE\r\nnginx_nginx                        latest              70d6fcf2fc2c        29 minutes ago      261.1 MB\r\n```\r\n\r\n\"nginx_nginx\"? Really? You couldn't just use \"nginx\" as I named it?\r\nIf you really want to have such weird naming schemes, at least let me override it with a proper name."}}