{"action":"opened","issue":{"url":"https://api.github.com/repos/moby/moby/issues/38466","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/38466/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/38466/comments","events_url":"https://api.github.com/repos/moby/moby/issues/38466/events","html_url":"https://github.com/moby/moby/issues/38466","id":395010504,"node_id":"MDU6SXNzdWUzOTUwMTA1MDQ=","number":38466,"title":"strange issue when building image with build-arg on windows via Makefile","user":{"login":"Liu233w","id":16333687,"node_id":"MDQ6VXNlcjE2MzMzNjg3","avatar_url":"https://avatars2.githubusercontent.com/u/16333687?v=4","gravatar_id":"","url":"https://api.github.com/users/Liu233w","html_url":"https://github.com/Liu233w","followers_url":"https://api.github.com/users/Liu233w/followers","following_url":"https://api.github.com/users/Liu233w/following{/other_user}","gists_url":"https://api.github.com/users/Liu233w/gists{/gist_id}","starred_url":"https://api.github.com/users/Liu233w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liu233w/subscriptions","organizations_url":"https://api.github.com/users/Liu233w/orgs","repos_url":"https://api.github.com/users/Liu233w/repos","events_url":"https://api.github.com/users/Liu233w/events{/privacy}","received_events_url":"https://api.github.com/users/Liu233w/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-31T17:30:58Z","updated_at":"2018-12-31T17:30:58Z","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/moby/moby/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 for **docker** can be found at the following locations:\r\n\r\n- Docker Support Forums - https://forums.docker.com\r\n- Slack - community.docker.com #general channel\r\n- Post a question on StackOverflow, using the Docker tag\r\n\r\nGeneral support for **moby** can be found at the following locations:\r\n\r\n- Moby Project Forums - https://forums.mobyproject.org\r\n- Slack - community.docker.com #moby-project channel\r\n- Post a question on StackOverflow, using the Moby 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\n\r\n<!--\r\nBriefly describe the problem you are having in a few paragraphs.\r\n-->\r\n\r\nUse the file below to reproduce it:\r\n\r\nMakefile:\r\n```makefile\r\nbuild:\r\n\tdocker build . -f testArgPath.Dockerfile -t test-image --build-arg path=/var/testPath\r\nrun:\r\n\tdocker run -it --rm test-image pwd\r\nclean:\r\n\tdocker image rm test-image\r\n```\r\n\r\ntestArgPath.Dockerfile:\r\n```Dockerfile\r\nFROM alpine\r\nARG path\r\nWORKDIR ${path}\r\n```\r\n\r\nrunning on windows via command prompt\r\n\r\n**Steps to reproduce the issue:**\r\n1. make build run clean\r\n\r\n**Describe the results you received:**\r\n\r\n```text\r\nd:\\Sources\\docker>make build run clean\r\ndocker build . -f testArgPath.Dockerfile -t test-image --build-arg path=/var/testPath\r\nSending build context to Docker daemon  4.096kB\r\nStep 1/3 : FROM alpine\r\n ---> 3f53bb00af94\r\nStep 2/3 : ARG path\r\n ---> Running in 1d0cea8985b2\r\nRemoving intermediate container 1d0cea8985b2\r\n ---> 05049de90a53\r\nStep 3/3 : WORKDIR ${path}\r\n ---> Running in a778a99b6571\r\nRemoving intermediate container a778a99b6571\r\n ---> 264f464ff6fc\r\nSuccessfully built 264f464ff6fc\r\nSuccessfully tagged test-image:latest\r\nSECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.\r\ndocker run -it --rm test-image pwd\r\n/D:/Software/msys2/var/testPath          <================== see this line =========\r\ndocker image rm test-image\r\nUntagged: test-image:latest\r\nDeleted: sha256:264f464ff6fc249e949fbfe5a7e5efd4c39481f8f9bcc9c58cfe8d25d83d7d85\r\nDeleted: sha256:6442f5ad8e93b2e06f86c8e9acab852acfc5ea06255917e319be8aa0c9777f3d\r\nDeleted: sha256:05049de90a53fd0bedbd61aff0431e92e260e8b02dbddf0db0c383c2217bd1f5\r\n```\r\n\r\n**Describe the results you expected:**\r\n\r\nThe output of `pwd` should be `/var/testPath`\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nI installed msys2 on windows to use `make`, by simply running `pacman -S make` and adding the `bin` path (`d:\\Software\\msys2\\usr\\bin\\` on my computer) of msys2 to the `path` environment variable.\r\n\r\n**Output of `docker version`:**\r\n\r\ndocker on windows\r\n\r\ndocker version:\r\n```\r\nDocker version 18.09.0, build 4d60db4\r\n```\r\n\r\ndocker desktop version:\r\n```\r\nVersion 2.0.0.0-win81 (29211)\r\nChannel: stable\r\nBuild: 4271b9e\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 0\r\n Running: 0\r\n Paused: 0\r\n Stopped: 0\r\nImages: 12\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 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 Windows\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 1.934GiB\r\nName: linuxkit-00155d35fc13\r\nID: H4F2:SVUL:BGTY:7PPJ:XJHS:3NJE:ZC3C:CSUD:4YFP:R3Z2:DMJO:BTEZ\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): true\r\n File Descriptors: 22\r\n Goroutines: 47\r\n System Time: 2018-12-31T17:26:27.8167808Z\r\n EventsListeners: 1\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\nExperimental: false\r\nInsecure Registries:\r\n 127.0.0.0/8\r\nRegistry Mirrors:\r\n https://registry.docker-cn.com/\r\n http://8cc5e21c.m.daocloud.io/\r\nLive Restore Enabled: false\r\nProduct License: Community Engine\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n"}}
{"actor":{"display_login":"Liu233w"}}