Automatically launch a service on container run

Hello guys, i’ve created a docker file containing apache2, nginx and postgresql, i want these services to be started automatically when i run the container; I tried to use sysv init by running the command update-rc.d service_name defaults then update-rc.d service_name enable but none of the service is running. Please i need help

A docker container is an isolated process on the host. It does not “boot”. It will start whatever you defined as ENTRYPOINT and/or CMD. See: Container Images following best practices, neither cover severall service (yours does), nor do they use a classic system deamon like initv or systemd.