nginx 默认允许在daemon模式下,在执行docker run -d nginx /usr/bin/nginx 的时候会自动退出,在nginx的nginx.conf文件最上面一行加入daemon off; 然后重新commit就可以运行了

http://wiki.nginx.org/CoreModule


Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐