Nginx容器尚未入门

时间:2017-12-19 13:43:57

标签: docker nginx entry-point ansible-container nginx-status

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

我使用sudo docker run -it imageid / bin / sh进入图像内部并尝试启动nginx容器。找到用于启动nginx的脚本:

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.

检查我的图像中的nginx状态的命令:nginx -t command。

nginx:配置文件/opv/nginx-18/nginx/nginx.conf语法还可以 nginx:配置文件/opv/nginx-18/nginx/nginx.conf测试成功  请告诉我如何使用该命令启动nginx。

0 个答案:

没有答案