Nginx container is not getting started

I build the nginx container image successfully. but its not getting started.

I went inside the image using sudo docker run -it imageid /bin/sh and tried to up the nginx container. Find the script used to start the nginx below :

Entrypoint.sh :

cd /app/server/sbin/
./nginx -g 'daemon off'
echo "After start"

At the ./nginx command the script is not executing, am also not seeing any error. I cross verified the nginx status.

Command to check nginx status inside my image:nginx -t command.

nginx : the configuration file /opv/nginx-18/nginx/nginx.conf syntax was ok nginx : the configuration file /opv/nginx-18/nginx/nginx.conf test is successfull Please let me know how to start nginx with that command.

Upvotes: 0

Views: 300

Answers (0)

Related Questions