docker run nginx问题
nginx 默认允许在daemon模式下,在执行docker run -d nginx /usr/bin/nginx 的时候会自动退出,在nginx的nginx.conf文件最上面一行加入daemon off; 然后重新commit就可以运行了
·
nginx 默认允许在daemon模式下,在执行docker run -d nginx /usr/bin/nginx 的时候会自动退出,在nginx的nginx.conf文件最上面一行加入daemon off; 然后重新commit就可以运行了
http://wiki.nginx.org/CoreModule
更多推荐
已为社区贡献16条内容
所有评论(0)