How to use runit in a Docker container
#1
Mon, 2017-07-31 22:18
TheMCME
-
- Offline
- 8 months 20 hours ago
- 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!
Question from the docker side: Why do you use runit to start your process inside docker?
ENTRYPOINT
andCMD
are the proper way to start a process inside the container.