Running services (upstart/init.d) in a container

前端 未结 2 1821
面向向阳花
面向向阳花 2021-01-04 22:23

I\'m trying to launch a system in docker that has many init and upstart services and I get this error.

initctl: Unable to connect to Upstart:
Failed to conne         


        
2条回答
  •  迷失自我
    2021-01-04 22:49

    You should definitely be able to do that. It's really not the way "Docker Way" but it's very possible. You might want to consider simply using the phusion/baseimage base image, it's got support for runit built in. If you'd rather use upstart just look at how they've implemented the entrypoint, /sbin/myinit, and follow that.

提交回复
热议问题