Is there a way to run commands like
service nginx start
nginx -t
when nginx is running in a docker container without having to start the container's bash shell?
You can overwrite ENTRYPOINT or CMD by specifying them on docker run...
If you really need to start a service then add a ; sleep infinity.