{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/16592","labels_url":"https://api.github.com/repos/docker/docker/issues/16592/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/16592/comments","events_url":"https://api.github.com/repos/docker/docker/issues/16592/events","html_url":"https://github.com/docker/docker/issues/16592","id":108393018,"number":16592,"title":"Docker remote API [POST /images/(name)/tag] doesn't respect \"tag\" parameter","user":{"login":"imlk","id":1551231,"avatar_url":"https://avatars.githubusercontent.com/u/1551231?v=3","gravatar_id":"","url":"https://api.github.com/users/imlk","html_url":"https://github.com/imlk","followers_url":"https://api.github.com/users/imlk/followers","following_url":"https://api.github.com/users/imlk/following{/other_user}","gists_url":"https://api.github.com/users/imlk/gists{/gist_id}","starred_url":"https://api.github.com/users/imlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imlk/subscriptions","organizations_url":"https://api.github.com/users/imlk/orgs","repos_url":"https://api.github.com/users/imlk/repos","events_url":"https://api.github.com/users/imlk/events{/privacy}","received_events_url":"https://api.github.com/users/imlk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-25T19:27:39Z","updated_at":"2015-09-26T00:05:20Z","closed_at":"2015-09-26T00:05:20Z","body":"Description : \r\n<pre>\r\ncurl -X POST http://192.168.99.102:2375/images/busybox:v1/tag?repo=busybox&tag=v2\r\n</pre>\r\nwill give busbox a \"latest\" tag, instead of \"v2\". (Both \"latest\" and \"2\" don't exist before).\r\n\r\nSteps to reproduce:\r\n1. pull an image busybox:oldtag\r\n2. Tag the image with newtag by sending http request : \r\n_curl -X POST http://192.168.99.102:2375/images/busybox:oldtag/tag?repo=busybox&tag=newtag_\r\n3. The busybox image now will be tagged as \"latest\" instead of newtag\r\n\r\nEnvironment : \r\nVirtualbox created by docker-machine\r\n\r\nDocker version \r\n<pre>\r\nClient:\r\n Version:      1.8.2\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   0a8c2e3\r\n Built:        Thu Sep 10 19:10:10 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.8.2\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   0a8c2e3\r\n Built:        Thu Sep 10 19:10:10 UTC 2015\r\n OS/Arch:      linux/amd64\r\n</pre>\r\n\r\nDocker Info\r\n<pre>\r\nContainers: 0\r\nImages: 59\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 59\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 4.0.9-boot2docker\r\nOperating System: Boot2Docker 1.8.1 (TCL 6.3); master : 7f12e95 - Thu Aug 13 03:24:56 UTC 2015\r\nCPUs: 8\r\nTotal Memory: 1.955 GiB\r\nName: boot2docker\r\nID: H4PN:LTAM:RT5Z:HOPW:CTO3:SUWK:CL3X:KLFC:YE2K:RCP6:CL3B:EIUP\r\nDebug mode (server): true\r\nFile Descriptors: 10\r\nGoroutines: 16\r\nSystem Time: 2015-09-25T19:37:51.064129509Z\r\nEventsListeners: 0\r\nInit SHA1:\r\nInit Path: /usr/local/bin/docker\r\nDocker Root Dir: /mnt/sda1/var/lib/docker\r\nUsername: imlkai\r\nRegistry: https://index.docker.io/v1/\r\n</pre>\r\n\r\nuname -a\r\n<pre>\r\nDarwin localhost 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64\r\n</pre>"}}