{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/30968","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/30968/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/30968/comments","events_url":"https://api.github.com/repos/docker/docker/issues/30968/events","html_url":"https://github.com/docker/docker/pull/30968","id":207162992,"number":30968,"title":"Add note for Debian family(such as Ubuntu)","user":{"login":"eromoe","id":3938751,"avatar_url":"https://avatars.githubusercontent.com/u/3938751?v=3","gravatar_id":"","url":"https://api.github.com/users/eromoe","html_url":"https://github.com/eromoe","followers_url":"https://api.github.com/users/eromoe/followers","following_url":"https://api.github.com/users/eromoe/following{/other_user}","gists_url":"https://api.github.com/users/eromoe/gists{/gist_id}","starred_url":"https://api.github.com/users/eromoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eromoe/subscriptions","organizations_url":"https://api.github.com/users/eromoe/orgs","repos_url":"https://api.github.com/users/eromoe/repos","events_url":"https://api.github.com/users/eromoe/events{/privacy}","received_events_url":"https://api.github.com/users/eromoe/received_events","type":"User","site_admin":false},"labels":[{"id":190271448,"url":"https://api.github.com/repos/docker/docker/labels/area/docs","name":"area/docs","color":"fbca04","default":false},{"id":234913403,"url":"https://api.github.com/repos/docker/docker/labels/dco/no","name":"dco/no","color":"f7c6c7","default":false},{"id":175375520,"url":"https://api.github.com/repos/docker/docker/labels/status/3-docs-review","name":"status/3-docs-review","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-13T09:34:25Z","updated_at":"2017-02-13T18:02:48Z","closed_at":"2017-02-13T09:46:27Z","pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/30968","html_url":"https://github.com/docker/docker/pull/30968","diff_url":"https://github.com/docker/docker/pull/30968.diff","patch_url":"https://github.com/docker/docker/pull/30968.patch"},"body":"There are many requests that demand using `/bin/bash` instead of `/bin/sh`\r\n\r\nhttps://github.com/docker/docker/issues/8100\r\nhttps://github.com/docker/docker/pull/7489\r\nhttps://github.com/docker/docker/issues/7281\r\n\r\nIt because they are using the image of Debian family. It is inconvenient to write all command like `RUN [\"/bin/bash\", \"-c\", \"python test.py\"]`. \r\nAnd here is a much more simple way:\r\n\r\n```\r\nFROM some-image\r\nRUN rm /bin/sh && ln -s /bin/bash /bin/sh\r\n```\r\n\r\nI think this is a very useful note  should be include in docs."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/279471454","html_url":"https://github.com/docker/docker/pull/30968#issuecomment-279471454","issue_url":"https://api.github.com/repos/docker/docker/issues/30968","id":279471454,"user":{"login":"ijc25","id":12985729,"avatar_url":"https://avatars.githubusercontent.com/u/12985729?v=3","gravatar_id":"","url":"https://api.github.com/users/ijc25","html_url":"https://github.com/ijc25","followers_url":"https://api.github.com/users/ijc25/followers","following_url":"https://api.github.com/users/ijc25/following{/other_user}","gists_url":"https://api.github.com/users/ijc25/gists{/gist_id}","starred_url":"https://api.github.com/users/ijc25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ijc25/subscriptions","organizations_url":"https://api.github.com/users/ijc25/orgs","repos_url":"https://api.github.com/users/ijc25/repos","events_url":"https://api.github.com/users/ijc25/events{/privacy}","received_events_url":"https://api.github.com/users/ijc25/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T18:02:48Z","updated_at":"2017-02-13T18:02:48Z","body":"Apart from the suggestion to use `SHELL` (which I agree with) the better/supported way to change the default `/bin/sh` link in Debian from dash to bash would be something like:\r\n```\r\nRUN echo \"dash dash/sh boolean false\" | debconf-set-selections - && dpkg-reconfigure dash\r\n```\r\nand to switch back:\r\n```\r\nRUN echo \"dash dash/sh boolean true\" | debconf-set-selections - && dpkg-reconfigure dash\r\n```\r\n(only tried this from the shell prompt not actually in a `Dockerfile` so caveat emptor)"}}
{"actor":{"display_login":"ijc25"}}