{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/23204","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/23204/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/23204/comments","events_url":"https://api.github.com/repos/docker/docker/issues/23204/events","html_url":"https://github.com/docker/docker/issues/23204","id":158145151,"number":23204,"title":"Cannot RUN sh while building on Windows","user":{"login":"xmalion","id":5241133,"avatar_url":"https://avatars.githubusercontent.com/u/5241133?v=3","gravatar_id":"","url":"https://api.github.com/users/xmalion","html_url":"https://github.com/xmalion","followers_url":"https://api.github.com/users/xmalion/followers","following_url":"https://api.github.com/users/xmalion/following{/other_user}","gists_url":"https://api.github.com/users/xmalion/gists{/gist_id}","starred_url":"https://api.github.com/users/xmalion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmalion/subscriptions","organizations_url":"https://api.github.com/users/xmalion/orgs","repos_url":"https://api.github.com/users/xmalion/repos","events_url":"https://api.github.com/users/xmalion/events{/privacy}","received_events_url":"https://api.github.com/users/xmalion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/version/1.11","name":"version/1.11","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-02T13:48:35Z","updated_at":"2016-06-03T11:06:01Z","closed_at":null,"body":"**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   20f81dd\r\n Built:        Thu Mar 10 21:49:11 2016\r\n OS/Arch:      windows/amd64\r\n\r\nServer:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Wed Apr 27 00:34:20 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 11\r\n Running: 0\r\n Paused: 0\r\n Stopped: 11\r\nImages: 11\r\nServer Version: 1.11.1\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 50\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nPlugins:\r\n Volume: local\r\n Network: bridge null host\r\nKernel Version: 4.4.8-boot2docker\r\nOperating System: Boot2Docker 1.11.1 (TCL 7.0); HEAD : 7954f54 - Wed Apr 27 16:36:45 UTC 2016\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 1.955 GiB\r\nName: default\r\nID: QEE4:4XNY:XS2Z:CJWL:64N4:JYQ4:FP6J:CKVR:OLCW:KWVZ:65AL:WCP3\r\nDebug mode (server): true\r\n File Descriptors: 13\r\n Goroutines: 30\r\n System Time: 2016-06-02T13:38:46.337243052Z\r\n EventsListeners: 0\r\n Init SHA1:\r\n Init Path:\r\n Docker Root Dir: /mnt/sda1/var/lib/docker\r\nLabels:\r\n provider=virtualbox\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\nWindows 7 64-bit\r\n\r\n**Steps to reproduce the issue:**\r\n1. Dockerfile:\r\n```\r\nFROM mariadb:10.0\r\n\r\nCOPY mariadb.cnf /etc/mysql/conf.d\r\n\r\n# Add script to create default users / vhosts\r\nADD init.sh /init.sh\r\nADD run.sh /run.sh\r\n\r\nRUN chmod +x /init.sh /run.sh \\\r\n && /init.sh\r\n\r\nENTRYPOINT \"/run.sh\"\r\n```\r\n2. Then run:\r\n```\r\ndocker-compose build db\r\n```\r\n3. And on step running `init.sh`:\r\n![123](http://dl1.joxi.net/drive/2016/06/02/0008/3571/581107/07/e8e288c7cb.png)\r\n\r\nIf I don't chmod on files, then file exists and Access denied error happened, but when +x, then \"not found\".\r\n\r\nThe same config is perfectly work on OSX, but fail on Windows. What a problem?"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/223551841","html_url":"https://github.com/docker/docker/issues/23204#issuecomment-223551841","issue_url":"https://api.github.com/repos/docker/docker/issues/23204","id":223551841,"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},"created_at":"2016-06-03T11:06:01Z","updated_at":"2016-06-03T11:06:01Z","body":"> File was not changed and in state from repository.\r\n\r\nCorrect, but it may have been automatically converted to Windows line-endings by Git; see https://github.com/docker/docker/pull/22395 and https://help.github.com/articles/dealing-with-line-endings/#platform-windows"}}
{"actor":{"display_login":"thaJeztah"}}