0

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?

0

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Sorry, but it's still unclear to me, can you provide an example? Or a link to more info?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.