{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/22036","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/22036/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/22036/comments","events_url":"https://api.github.com/repos/docker/docker/issues/22036/events","html_url":"https://github.com/docker/docker/issues/22036","id":148352111,"number":22036,"title":"[1.11.0] Labels set on the command line don't override labels in Dockerfile","user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/builder","name":"area/builder","color":"0052cc"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T12:54:28Z","updated_at":"2016-04-14T12:54:28Z","closed_at":null,"body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.11.0\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   4dc5990\r\n Built:        Wed Apr 13 18:34:23 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.0\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   4dc5990\r\n Built:        Wed Apr 13 18:34:23 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n**Steps to reproduce the issue:**\r\n\r\n```\r\nFROM scratch\r\nLABEL foo=from-dockerfile\r\n```\r\n\r\n\r\n    docker build -t scratchy --label foo=from-flag --label bar=from-flag .\r\n\r\n**Describe the results you received:**\r\n\r\ninspect the resulting image;\r\n\r\n    docker inspect --format \"{{ json .Config.Labels }}\" scratchy\r\n    {\"bar\":\"from-flag\",\"foo\":\"from-dockerfile\"}\r\n\r\n**Describe the results you expected:**\r\n\r\nI expected the `foo` label on the commandline to override the `foo` label that \r\nwas set in the Dockerfile.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nThis was implemented in https://github.com/docker/docker/pull/21270, and additional changes in https://github.com/docker/docker/pull/21664"}}