{"action":"closed","issue":{"url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/28","labels_url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/28/comments","events_url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/28/events","html_url":"https://github.com/CentOS/sig-cloud-instance-images/issues/28","id":103565946,"number":28,"title":"The centos:centos7 image doesn't have \"service\" command","user":{"login":"jamshid","id":8549,"avatar_url":"https://avatars.githubusercontent.com/u/8549?v=3","gravatar_id":"","url":"https://api.github.com/users/jamshid","html_url":"https://github.com/jamshid","followers_url":"https://api.github.com/users/jamshid/followers","following_url":"https://api.github.com/users/jamshid/following{/other_user}","gists_url":"https://api.github.com/users/jamshid/gists{/gist_id}","starred_url":"https://api.github.com/users/jamshid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamshid/subscriptions","organizations_url":"https://api.github.com/users/jamshid/orgs","repos_url":"https://api.github.com/users/jamshid/repos","events_url":"https://api.github.com/users/jamshid/events{/privacy}","received_events_url":"https://api.github.com/users/jamshid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-27T18:19:05Z","updated_at":"2015-12-15T21:36:33Z","closed_at":"2015-12-15T21:36:33Z","body":"I know centos7 switched to systemd but I thought \"service MYSERVICE start\" is still supported for backwards compatibility. That's mentioned in below blog and I see /sbin/service in an official CentOS-7-x86_64-Minimal-1503-01.iso vm.\r\n\r\nHow do I add the \"service\" command to a centos7 container?\r\n```\r\n$ docker run -ti centos:centos6 service\r\nUsage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]\r\n$ docker run -ti centos:centos7 service\r\nexec: \"service\": executable file not found in $PATH\r\nError response from daemon: Cannot start container ...\r\n$ docker run -ti centos:centos7 which service\r\nwhich: no service in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)\r\n```\r\n\r\nhttp://www.knowledgepia.com/en/k-blog/linux-server/linux-systemd-on-rhel-centos7\r\n>To view, start, stop, restart, enable, or disable system services you will use the systemctl instead of the old service command.\r\n>Note: for backwards compatibility the old service command is still available in CentOS 7 and it will redirect any command to the new systemctl utility."}}