博客信息

The centos:centos7 image doesn't have "service" command

发布时间:『 2018-03-02 13:49:59』  博客类别:  阅读(557) 评论(0)

I see this issue is already closed, just would like to share a little bit more detail how to fix it based on recommendation to install initscripts on centOS base image, I guess it can be helpful for people still beginners with docker and gets this page.

in your DockerFile just add the line:

RUN yum -y install initscripts && yum clean all

that is it!

关键字:     docker       centos  
评论信息
暂无评论