-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentation on custom CMD/ENTRYPOINT #875
Comments
Hi @ne555! Can you elaborate on what exactly needs to be documented and why? We do indeed only run customization via |
I was caught out by this today. eg
to get around this, I added a custom command in my docker-compose file so that nginx would generate a file with the correct contents for ip forwarding however the container stopped generating templates after I added this custom command.
I also tried adding this as a config file within /docker-entrypoint.d/ I did expect that the entrypoint script would still generate the templates but this will only happen if a custom command is not provided or if the entrypoint is also called within the command |
Hi @kale1d0code, You can just create a docker-entrypoint.d shell script to generate the file contents you'd like, and then include it in the configuration files for your service. No need for a special entrypoint or cmd. |
so for a custom CMD to actually execute those scripts it has to be on the form
but there is no such mention on the documentation https://hub.docker.com/_/nginx/
The text was updated successfully, but these errors were encountered: