I'm trying to run xinetd in a Docker container.
My Docker file is very basic:
# voip-monitor
#
# VERSION 0.0.1
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y xinetd python
EXPOSE 9090
CMD ["/usr/sbin/xinetd", "-d -dontfork"]
When I start my container with:
docker run -d -p 9090:9090 --name voip-monitor voip-monitor
It starts but exists after 2 seconds.
When I start my container with:
docker run -d -p 9090:9090 --name voip-monitor voip-monitor /usr/sbin/xinetd -d -dontfork
It works as expected. What am I missing here?