{"action":"created","issue":{"url":"https://api.github.com/repos/Yelp/dumb-init/issues/43","labels_url":"https://api.github.com/repos/Yelp/dumb-init/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/Yelp/dumb-init/issues/43/comments","events_url":"https://api.github.com/repos/Yelp/dumb-init/issues/43/events","html_url":"https://github.com/Yelp/dumb-init/issues/43","id":125253083,"number":43,"title":"ENTRYPOINT vs CMD","user":{"login":"alhafoudh","id":43397,"avatar_url":"https://avatars.githubusercontent.com/u/43397?v=3","gravatar_id":"","url":"https://api.github.com/users/alhafoudh","html_url":"https://github.com/alhafoudh","followers_url":"https://api.github.com/users/alhafoudh/followers","following_url":"https://api.github.com/users/alhafoudh/following{/other_user}","gists_url":"https://api.github.com/users/alhafoudh/gists{/gist_id}","starred_url":"https://api.github.com/users/alhafoudh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alhafoudh/subscriptions","organizations_url":"https://api.github.com/users/alhafoudh/orgs","repos_url":"https://api.github.com/users/alhafoudh/repos","events_url":"https://api.github.com/users/alhafoudh/events{/privacy}","received_events_url":"https://api.github.com/users/alhafoudh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-06T20:11:30Z","updated_at":"2016-01-07T07:29:07Z","closed_at":null,"body":"Shouldn't `dumb-init` be used as `ENTRYPOINT` instead of `CMD`?\r\n\r\nAs I understand, default entrypoint for docker container is `/bin/sh -c`.\r\nIf you prefix your app `myapp` with `dumb-init` in `CMD`, what would be actually ran is `sh -c \"dumb-init myapp\"`, so PID1 would be still `sh -c`, not `dumb-init`."},"comment":{"url":"https://api.github.com/repos/Yelp/dumb-init/issues/comments/169585617","html_url":"https://github.com/Yelp/dumb-init/issues/43#issuecomment-169585617","issue_url":"https://api.github.com/repos/Yelp/dumb-init/issues/43","id":169585617,"user":{"login":"rdsubhas","id":1570745,"avatar_url":"https://avatars.githubusercontent.com/u/1570745?v=3","gravatar_id":"","url":"https://api.github.com/users/rdsubhas","html_url":"https://github.com/rdsubhas","followers_url":"https://api.github.com/users/rdsubhas/followers","following_url":"https://api.github.com/users/rdsubhas/following{/other_user}","gists_url":"https://api.github.com/users/rdsubhas/gists{/gist_id}","starred_url":"https://api.github.com/users/rdsubhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdsubhas/subscriptions","organizations_url":"https://api.github.com/users/rdsubhas/orgs","repos_url":"https://api.github.com/users/rdsubhas/repos","events_url":"https://api.github.com/users/rdsubhas/events{/privacy}","received_events_url":"https://api.github.com/users/rdsubhas/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T07:29:07Z","updated_at":"2016-01-07T07:29:07Z","body":"I'm using it as the `ENTRYPOINT` and liking it much better. Because I usually override the `command` in `docker-compose.yml` for development, and remembering to add `dumb-init` everywhere is cumbersome."}}