{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14491","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14491/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14491/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14491/events","html_url":"https://github.com/kubernetes/kubernetes/issues/14491","id":108135191,"number":14491,"title":"Container failing to start isn't governed by pod's restart policy","user":{"login":"ncdc","id":354,"avatar_url":"https://avatars.githubusercontent.com/u/354?v=3","gravatar_id":"","url":"https://api.github.com/users/ncdc","html_url":"https://github.com/ncdc","followers_url":"https://api.github.com/users/ncdc/followers","following_url":"https://api.github.com/users/ncdc/following{/other_user}","gists_url":"https://api.github.com/users/ncdc/gists{/gist_id}","starred_url":"https://api.github.com/users/ncdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncdc/subscriptions","organizations_url":"https://api.github.com/users/ncdc/orgs","repos_url":"https://api.github.com/users/ncdc/repos","events_url":"https://api.github.com/users/ncdc/events{/privacy}","received_events_url":"https://api.github.com/users/ncdc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/priority/P1","name":"priority/P1","color":"eb6420"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/node","name":"team/node","color":"d2b48c"}],"state":"open","locked":false,"assignee":{"login":"dchen1107","id":7740897,"avatar_url":"https://avatars.githubusercontent.com/u/7740897?v=3","gravatar_id":"","url":"https://api.github.com/users/dchen1107","html_url":"https://github.com/dchen1107","followers_url":"https://api.github.com/users/dchen1107/followers","following_url":"https://api.github.com/users/dchen1107/following{/other_user}","gists_url":"https://api.github.com/users/dchen1107/gists{/gist_id}","starred_url":"https://api.github.com/users/dchen1107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchen1107/subscriptions","organizations_url":"https://api.github.com/users/dchen1107/orgs","repos_url":"https://api.github.com/users/dchen1107/repos","events_url":"https://api.github.com/users/dchen1107/events{/privacy}","received_events_url":"https://api.github.com/users/dchen1107/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-09-24T13:56:49Z","updated_at":"2015-09-30T18:22:24Z","closed_at":null,"body":"If you create a pod with a restart policy of never, and you have a container that fails to start (e.g. you set its command to a nonexistent file), the Kubelet currently tries to restart it infinitely because the container never started successfully, and therefore never received an exit code. You end up with something like this from Docker:\r\n\r\n```\r\nCannot start container ebd101cfcd0b1aab572a184ece01a17ce081658114977bd6490cd6c78aff06e3: [8] System error: exec: \"start\": executable file not found in $PATH\r\n```\r\n\r\nIs it worth modifying the code to consider a container that failed to start as actually failed, so the pod's restart policy can govern it?\r\n\r\nOriginally reported at https://bugzilla.redhat.com/show_bug.cgi?id=1262753\r\n\r\n@kubernetes/rh-cluster-infra @kubernetes/goog-node @smarterclayton @dchen1107 "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/144498236","html_url":"https://github.com/kubernetes/kubernetes/issues/14491#issuecomment-144498236","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14491","id":144498236,"user":{"login":"ncdc","id":354,"avatar_url":"https://avatars.githubusercontent.com/u/354?v=3","gravatar_id":"","url":"https://api.github.com/users/ncdc","html_url":"https://github.com/ncdc","followers_url":"https://api.github.com/users/ncdc/followers","following_url":"https://api.github.com/users/ncdc/following{/other_user}","gists_url":"https://api.github.com/users/ncdc/gists{/gist_id}","starred_url":"https://api.github.com/users/ncdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncdc/subscriptions","organizations_url":"https://api.github.com/users/ncdc/orgs","repos_url":"https://api.github.com/users/ncdc/repos","events_url":"https://api.github.com/users/ncdc/events{/privacy}","received_events_url":"https://api.github.com/users/ncdc/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T18:22:24Z","updated_at":"2015-09-30T18:22:24Z","body":"@yujuhong what would you look at in addition to `FinishedAt`?"}}