Docker Community Forums

Share and learn in the Docker community.

Error in docker image creation invoke-rc.d: policy-rc.d denied execution of restart/start


(Scribnar) #1

I am creating a new docker container with ubuntu:15.04 using docker configuration file Dockerfile. The file has commands app-get upgrade and app-get update. The below error is being thrown whenever rsync, nginx or php5-fpm is being setup and container creation fails. Please let me know how can this be resolved.

invoke-rc.d: policy-rc.d denied execution of restart.
invoke-rc.d: policy-rc.d denied execution of start.


(Aartidalvi09) #2

I was facing same issue

RUN echo exit 0 > /usr/sbin/policy-rc.d
Add this, should work.