{"action":"created","issue":{"url":"https://api.github.com/repos/docker/cli/issues/1559","repository_url":"https://api.github.com/repos/docker/cli","labels_url":"https://api.github.com/repos/docker/cli/issues/1559/labels{/name}","comments_url":"https://api.github.com/repos/docker/cli/issues/1559/comments","events_url":"https://api.github.com/repos/docker/cli/issues/1559/events","html_url":"https://github.com/docker/cli/issues/1559","id":389371942,"node_id":"MDU6SXNzdWUzODkzNzE5NDI=","number":1559,"title":"Unable to use COPY --from , docker build trying to pull image","user":{"login":"ldm810","id":2350672,"node_id":"MDQ6VXNlcjIzNTA2NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/2350672?v=4","gravatar_id":"","url":"https://api.github.com/users/ldm810","html_url":"https://github.com/ldm810","followers_url":"https://api.github.com/users/ldm810/followers","following_url":"https://api.github.com/users/ldm810/following{/other_user}","gists_url":"https://api.github.com/users/ldm810/gists{/gist_id}","starred_url":"https://api.github.com/users/ldm810/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldm810/subscriptions","organizations_url":"https://api.github.com/users/ldm810/orgs","repos_url":"https://api.github.com/users/ldm810/repos","events_url":"https://api.github.com/users/ldm810/events{/privacy}","received_events_url":"https://api.github.com/users/ldm810/received_events","type":"User","site_admin":false},"labels":[{"id":606728828,"node_id":"MDU6TGFiZWw2MDY3Mjg4Mjg=","url":"https://api.github.com/repos/docker/cli/labels/area/builder","name":"area/builder","color":"fef2c0","default":false},{"id":605859053,"node_id":"MDU6TGFiZWw2MDU4NTkwNTM=","url":"https://api.github.com/repos/docker/cli/labels/area/distribution","name":"area/distribution","color":"fef2c0","default":false},{"id":618619888,"node_id":"MDU6TGFiZWw2MTg2MTk4ODg=","url":"https://api.github.com/repos/docker/cli/labels/platform/desktop","name":"platform/desktop","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-10T16:08:15Z","updated_at":"2018-12-11T10:48:38Z","closed_at":null,"author_association":"NONE","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/cli/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nGENERAL SUPPORT INFORMATION\r\n---------------------------------------------------\r\n\r\nThe GitHub issue tracker is for bug reports and feature requests.\r\nGeneral support can be found at the following locations:\r\n\r\n- Docker Support Forums - https://forums.docker.com\r\n- Docker Community Slack - https://dockr.ly/community\r\n- Post a question on StackOverflow, using the Docker tag\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**Description**\r\nDocker file\r\n```\r\nFROM [imageName] AS builder\r\n\r\n# Step that fails\r\nCOPY --from=builder [file] [destination]\r\n\r\n```\r\nWhen I try to build the docker file with the above, I get this error: \r\ninvalid from flag value builder: pull access denied for builder, repository does not exist or may require 'docker login'\r\n\r\nI have imageName already pulled locally and I have access to the private repo it lives in. But it seems as though I just have trouble in the copy line. I am running version: `18.09.0`\r\n\r\n**Steps to reproduce the issue:**\r\n1. Run docker version 18.09.0\r\n2. Create docker file with above contents\r\n3. Run docker build . -t [image tag]\r\n\r\n**Describe the results you received:**\r\nSeems as though that syntax does not work. I receive the following error: \r\n`invalid from flag value [alias name]` regardless  of what alias I assign. I tried using the index 0 but that threw another error stating: \r\n`invalid from flag value 0: refers to current build stage`\r\nWhen I try 1 as the index, I get an out of bounds error which is expected\r\n**Describe the results you expected:**\r\n\r\nI am expecting that the build will work with the syntax `--from=builder`\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient: Docker Engine - Community\r\n Version:           18.09.0\r\n API version:       1.39\r\n Go version:        go1.10.4\r\n Git commit:        4d60db4\r\n Built:             Wed Nov  7 00:47:43 2018\r\n OS/Arch:           darwin/amd64\r\n Experimental:      false\r\n\r\nServer: Docker Engine - Community\r\n Engine:\r\n  Version:          18.09.0\r\n  API version:      1.39 (minimum version 1.12)\r\n  Go version:       go1.10.4\r\n  Git commit:       4d60db4\r\n  Built:            Wed Nov  7 00:55:00 2018\r\n  OS/Arch:          linux/amd64\r\n  Experimental:     true\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 27\r\n Running: 10\r\n Paused: 0\r\n Stopped: 17\r\nImages: 685\r\nServer Version: 18.09.0\r\nStorage Driver: overlay2\r\n Backing Filesystem: extfs\r\n Supports d_type: true\r\n Native Overlay Diff: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host ipvlan macvlan null overlay\r\n Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nInit Binary: docker-init\r\ncontainerd version: 468a545b9edcd5932818eb9de8e72413e616e86e\r\nrunc version: 69663f0bd4b60df09991c08812a60108003fa340\r\ninit version: fec3683\r\nSecurity Options:\r\n seccomp\r\n  Profile: default\r\nKernel Version: 4.9.125-linuxkit\r\nOperating System: Docker for Mac\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 1.952GiB\r\nName: linuxkit-025000000001\r\nID: KFZT:ZJLY:SIQK:KB2Y:UOWM:KQRU:PDYG:N2O6:CJUI:7CVO:FNO7:TPVK\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): true\r\n File Descriptors: 25\r\n Goroutines: 52\r\n System Time: 2018-12-10T16:07:48.76739092Z\r\n EventsListeners: 2\r\nHTTP Proxy: gateway.docker.internal:3128\r\nHTTPS Proxy: gateway.docker.internal:3129\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\nExperimental: true\r\nInsecure Registries:\r\n 127.0.0.0/8\r\nLive Restore Enabled: false\r\nProduct License: Community Engine\r\n\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\nRunning on a mac\r\nI noticed this works on our CI which uses version 17 of docker"},"comment":{"url":"https://api.github.com/repos/docker/cli/issues/comments/446158157","html_url":"https://github.com/docker/cli/issues/1559#issuecomment-446158157","issue_url":"https://api.github.com/repos/docker/cli/issues/1559","id":446158157,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjE1ODE1Nw==","user":{"login":"tonistiigi","id":585223,"node_id":"MDQ6VXNlcjU4NTIyMw==","avatar_url":"https://avatars1.githubusercontent.com/u/585223?v=4","gravatar_id":"","url":"https://api.github.com/users/tonistiigi","html_url":"https://github.com/tonistiigi","followers_url":"https://api.github.com/users/tonistiigi/followers","following_url":"https://api.github.com/users/tonistiigi/following{/other_user}","gists_url":"https://api.github.com/users/tonistiigi/gists{/gist_id}","starred_url":"https://api.github.com/users/tonistiigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonistiigi/subscriptions","organizations_url":"https://api.github.com/users/tonistiigi/orgs","repos_url":"https://api.github.com/users/tonistiigi/repos","events_url":"https://api.github.com/users/tonistiigi/events{/privacy}","received_events_url":"https://api.github.com/users/tonistiigi/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T10:48:38Z","updated_at":"2018-12-11T10:48:38Z","author_association":"MEMBER","body":"You need to have a second stage to use `COPY --from` you can not point `--from` to the same stage you are currently changing."}}
{"actor":{"display_login":"tonistiigi"}}