简体   繁体   English

Azure存储模拟器的Docker映像-Nginx错误

[英]Docker image of Azure Storage Emulator - nginx error

I am trying to run a docker image of Azure Storage Emulator, latest version available on docker hub. 我正在尝试运行Azure存储模拟器的Docker映像,这是Docker Hub上可用的最新版本。 It starts for a few seconds, creates container but immediately I am getting this error: 它开始几秒钟,创建了容器,但立即出现此错误:

nginx: [emerg] unexpected end of parameter, expecting ";" in command line

在此处输入图片说明

Is this an issue with the image or my environment? 这是图像还是环境问题? What am I looking at, I'm not sure what to debug. 我在看什么,我不确定要调试什么。

In my test, the same error came out and then I change something below and it works well. 在我的测试中,出现了相同的错误,然后我在下面进行了更改,并且效果很好。

Append one line in the file nginx.conf : 在文件nginx.conf追加一行:

daemon off;

Change the last two lines in the Dockerfile into this: 将Dockerfile中的最后两行更改为:

ENTRYPOINT C:\entrypoint.cmd
CMD nginx.exe

You can get all the things in the Github here . 你可以得到所有的东西,在Github上这里 Hope it helps. 希望能帮助到你。 If any more questions, please let me know. 如果还有其他问题,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM