There is a script that should be run after creating the container.
Dockerfile
FROM someimage MAINTAINER Meiram RUN /somedir/somescript.sh start As a result, after the build of the image I create a container
$ docker run -td newsomeimage As a result, the process is not running, but it should always be running.
This script is launched with the start parameter, it listens to the port it needs. It should always be running. It is necessary after restarting the container or reboot of the host not to interfere with the operation of the container.
At the moment, after each start of the container, I manually enter the container with the help of the docker exec directive, and manually launch the script, but this is not exactly what I would like. Are there any other ways to run the script all the time after starting the container?