{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/14519","labels_url":"https://api.github.com/repos/docker/docker/issues/14519/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/14519/comments","events_url":"https://api.github.com/repos/docker/docker/issues/14519/events","html_url":"https://github.com/docker/docker/issues/14519","id":94197871,"number":14519,"title":"docker should prevent from building images with same repository name.","user":{"login":"raymondmeng36","id":3907772,"avatar_url":"https://avatars.githubusercontent.com/u/3907772?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondmeng36","html_url":"https://github.com/raymondmeng36","followers_url":"https://api.github.com/users/raymondmeng36/followers","following_url":"https://api.github.com/users/raymondmeng36/following{/other_user}","gists_url":"https://api.github.com/users/raymondmeng36/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondmeng36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondmeng36/subscriptions","organizations_url":"https://api.github.com/users/raymondmeng36/orgs","repos_url":"https://api.github.com/users/raymondmeng36/repos","events_url":"https://api.github.com/users/raymondmeng36/events{/privacy}","received_events_url":"https://api.github.com/users/raymondmeng36/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-10T02:30:11Z","updated_at":"2015-07-10T02:30:11Z","closed_at":null,"body":"Description of problem:\r\nFor example, there is an image named aaa/bbb. Then you create another image using docker build command with paramiters -t=\"aaa/bbb\". Right after the new image successfully created, the former image's repository and tag will turn to \"none\".\r\n\r\n`docker version`:\r\nClient version: 1.5.0\r\nClient API version: 1.17\r\nGo version (client): go1.3.3\r\nGit commit (client): a8a31ef/1.5.0\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.5.0\r\nServer API version: 1.17\r\nGo version (server): go1.3.3\r\nGit commit (server): a8a31ef/1.5.0\r\n\r\n`docker info`:\r\nContainers: 1\r\nImages: 13\r\nStorage Driver: devicemapper\r\n Pool Name: docker-8:2-269741-pool\r\n Pool Blocksize: 65.54 kB\r\n Backing Filesystem: extfs\r\n Data file: /dev/loop0\r\n Metadata file: /dev/loop1\r\n Data Space Used: 771.2 MB\r\n Data Space Total: 107.4 GB\r\n Metadata Space Used: 1.45 MB\r\n Metadata Space Total: 2.147 GB\r\n Udev Sync Supported: true\r\n Data loop file: /var/lib/docker/devicemapper/devicemapper/data\r\n Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata\r\n Library Version: 1.02.89-RHEL6 (2014-09-01)\r\nExecution Driver: native-0.2\r\nKernel Version: 2.6.32-504.el6.x86_64\r\nOperating System: <unknown>\r\nCPUs: 1\r\nTotal Memory: 988.6 MiB\r\nName: localhost\r\nID: DRCH:KHSF:45LW:LTHX:ZCIV:5LN6:2WHQ:O4FA:PUUC:EOXK:FEZJ:RPQ2\r\nUsername: cxyyouxi\r\nRegistry: [https://index.docker.io/v1/]\r\n\r\n`uname -a`:\r\nLinux localhost 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nEnvironment details (AWS, VirtualBox, physical, etc.):\r\nVMWare Workstation 10\r\nCentOS_6.6_x86_64\r\n\r\nHow reproducible:\r\nAlways\r\n\r\nSteps to Reproduce:\r\n1. successfully create a docker image using docker build with parameter -t=\"aaa/bbb\", return image id: aaaaaaaa\r\n2. check the image info using docker images\r\n3. try to create another docker image using docker build still with parameter -t=\"aaa/bbb\", return image id: bbbbbbbb\r\n\r\n\r\nActual Results:\r\nthe first image aaaaaaaa's repository name and tag name turn to \"none\".\r\n\r\nExpected Results:\r\ndocker should not allow user to create image with repository name that already existed.\r\n\r\nAdditional info:\r\n![image 1](https://cloud.githubusercontent.com/assets/3907772/8611104/92fc06be-26ee-11e5-9af2-52f6da912b14.png)\r\n"}}