{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker.github.io/issues/2343","repository_url":"https://api.github.com/repos/docker/docker.github.io","labels_url":"https://api.github.com/repos/docker/docker.github.io/issues/2343/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker.github.io/issues/2343/comments","events_url":"https://api.github.com/repos/docker/docker.github.io/issues/2343/events","html_url":"https://github.com/docker/docker.github.io/pull/2343","id":214367537,"number":2343,"title":"Update !#/bin/bash to !#/bin/sh startup-order.md","user":{"login":"kellyjandrews","id":5222954,"avatar_url":"https://avatars0.githubusercontent.com/u/5222954?v=3","gravatar_id":"","url":"https://api.github.com/users/kellyjandrews","html_url":"https://github.com/kellyjandrews","followers_url":"https://api.github.com/users/kellyjandrews/followers","following_url":"https://api.github.com/users/kellyjandrews/following{/other_user}","gists_url":"https://api.github.com/users/kellyjandrews/gists{/gist_id}","starred_url":"https://api.github.com/users/kellyjandrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellyjandrews/subscriptions","organizations_url":"https://api.github.com/users/kellyjandrews/orgs","repos_url":"https://api.github.com/users/kellyjandrews/repos","events_url":"https://api.github.com/users/kellyjandrews/events{/privacy}","received_events_url":"https://api.github.com/users/kellyjandrews/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-15T12:00:00Z","updated_at":"2017-03-15T23:37:43Z","closed_at":"2017-03-15T23:37:43Z","pull_request":{"url":"https://api.github.com/repos/docker/docker.github.io/pulls/2343","html_url":"https://github.com/docker/docker.github.io/pull/2343","diff_url":"https://github.com/docker/docker.github.io/pull/2343.diff","patch_url":"https://github.com/docker/docker.github.io/pull/2343.patch"},"body":"### Proposed changes\r\n\r\nChanged `!#/bin/bash` to `!#/bin/sh` because the script above was throwing `standard_init_linux.go:178: exec user process caused \"no such file or directory\"`.  Maybe I was doing something incorrectly, but switching to `sh` allowed it to run.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker.github.io/issues/comments/286913505","html_url":"https://github.com/docker/docker.github.io/pull/2343#issuecomment-286913505","issue_url":"https://api.github.com/repos/docker/docker.github.io/issues/2343","id":286913505,"user":{"login":"kellyjandrews","id":5222954,"avatar_url":"https://avatars0.githubusercontent.com/u/5222954?v=3","gravatar_id":"","url":"https://api.github.com/users/kellyjandrews","html_url":"https://github.com/kellyjandrews","followers_url":"https://api.github.com/users/kellyjandrews/followers","following_url":"https://api.github.com/users/kellyjandrews/following{/other_user}","gists_url":"https://api.github.com/users/kellyjandrews/gists{/gist_id}","starred_url":"https://api.github.com/users/kellyjandrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellyjandrews/subscriptions","organizations_url":"https://api.github.com/users/kellyjandrews/orgs","repos_url":"https://api.github.com/users/kellyjandrews/repos","events_url":"https://api.github.com/users/kellyjandrews/events{/privacy}","received_events_url":"https://api.github.com/users/kellyjandrews/received_events","type":"User","site_admin":false},"created_at":"2017-03-15T23:37:43Z","updated_at":"2017-03-15T23:37:43Z","body":"Ah - ok - that makes sense. I was running the script as an `ENTRYPOINT` to my node app running the `node:7.7.2-alpine` image.  \r\n\r\n```shell\r\n# ls -l /bin/sh\r\nlrwxrwxrwx    1 root     root            12 Mar  3 11:20 /bin/sh -> /bin/busybox\r\n# ls -ld /bin/bash\r\nls: /bin/bash: No such file or directory\r\n```\r\n`bash` doesn't exist on Busy Box at all - which does explain the error I was seeing. The above troubleshooting, however, is super useful, and I've learned something today, so all good.\r\n\r\nI ended by changing to `node:7.7.2-slim` where `bash` is preinstalled, and I get the results you have above.\r\n\r\n```shell \r\n# ls -l /bin/sh\r\nlrwxrwxrwx 1 root root 4 Nov  8  2014 /bin/sh -> dash\r\n\r\n# ls -ld /bin/bash\r\n-rwxr-xr-x 1 root root 1029624 Nov  5 21:22 /bin/bash\r\n```\r\n\r\nI don't want to change documentation if not required - but it might be good to note somewhere that the alpine version won't have `bash` installed, unless that is just something I should have know already and was completely naive here. \r\n\r\nThank you so much for the really helpful response.  I will go ahead and close this, and let you all reopen if warranted."}}
{"actor":{"display_login":"kellyjandrews"}}