Skip to content
Advertisement

docker-entrypoint exec nginx not found

I’m not sure what I’m doing is correct so fix me if I’m mistaken.

This is my dockerfile:

JavaScript

I’m trying to add rtmp module to my nginx.

I’m trying to run the image with the command below:

JavaScript

This is what I received:

JavaScript

What is that /docker-entrypoint.sh: 38: exec: nginx: not found? How do I fix it?

Advertisement

Answer

There is already an nginx image with rtmp module installed:

JavaScript

How to use:

https://hub.docker.com/r/tiangolo/nginx-rtmp/

Now for your problem, if you go to the official nginx docker image repository in https://github.com/nginxinc/docker-nginx, line 38 is:

JavaScript

So what does that do?

More information here:

https://unix.stackexchange.com/questions/466999/what-does-exec-do

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement