How to use runit in a Docker container

2 posts / 0 new
Last post
#1 Mon, 2017-07-31 22:18
TheMCME
  • TheMCME's picture
  • Offline
  • Last seen: 3 months 3 weeks ago
  • Joined: 2017-07-31

Hi,

I am in the process of replacing my Ubuntu images with Alpine, I am currently using runit like this on Ubuntu:

RUN apt-get install -y runit
CMD /usr/sbin/runsvdir-start

Trying this on Alpine
RUN apk add --no-cache runit
CMD /usr/sbin/runsvdir-start

But getting this error when I start the container
/bin/sh: /usr/sbin/runsvdir-start: not found

Any help is appreciated, thanks!

Mon, 2017-08-28 10:49
11notes
  • 11notes's picture
  • Offline
  • Last seen: 2 months 3 weeks ago
  • Joined: 2017-08-28

Question from the docker side: Why do you use runit to start your process inside docker? ENTRYPOINT and CMD are the proper way to start a process inside the container.

Log in or register to post comments