大网数据广告活动
服务器运维问答

How do I run nginx in a Windows Nano Server based container?

· 52CE 我爱测

I want to run nginx in a Nano Server based Docker container. It works fine if I use Windows Server Core as the base but if I use Windows Nano Server, nginx.exe immediately exits with code -1073741515 (0xC0000135), which the web t…

问题原文

原帖链接 · Sander · CC BY-SA 3.0

I want to run nginx in a Nano Server based Docker container. It works fine if I use Windows Server Core as the base but if I use Windows Nano Server, nginx.exe immediately exits with code -1073741515 (0xC0000135), which the web tells me means "The application failed to intialize properly". No output is printed.

I tried with nginx 1.11.13 and Windows Nano Server 10.0.14393.1066.

At some point, Microsoft published a sample container image that includes Nginx with Nano Server but it does not appear to be maintained and is 7 months out of date, so is not very useful to me. I was also not able to find any instructions for how they generated this container image, so that I could try to reproduce it with up to date components.

What do I need to do in order to make nginx work in a Nano Server based container?

已采纳解答

原帖链接 · olljanat · CC BY-SA 3.0

Problem is that official version of nginx is build with using "any cpu" setting (32 + 64 bit support) but on nano server you can only use native 64 bit only binaries.

You can find native 64 bit version of nginx from here: https://www.nginx.kr and I also uploaded Dockerfile which installs that to nano server to here: https://github.com/olljanat/nginx-nanoserver

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。